python3Packages.requests-kerberos: fix build

This commit is contained in:
Fabian Affolter 2021-04-02 11:46:47 +02:00
parent 1ccbd15b10
commit 7e65690165

View file

@ -1,4 +1,12 @@
{ lib, fetchFromGitHub, buildPythonPackage, requests, pykerberos, mock }:
{ lib
, fetchFromGitHub
, buildPythonPackage
, cryptography
, requests
, pykerberos
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "requests-kerberos";
@ -12,16 +20,26 @@ buildPythonPackage rec {
sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6";
};
checkInputs = [ mock ];
propagatedBuildInputs = [ requests pykerberos ];
propagatedBuildInputs = [
cryptography
requests
pykerberos
];
checkInputs = [
mock
pytestCheckHook
];
# they have a setup.py which mentions a test suite that doesn't exist...
patches = [ ./fix_setup.patch ];
pythonImportsCheck = [ "requests_kerberos" ];
meta = with lib; {
description = "An authentication handler for using Kerberos with Python Requests.";
homepage = "https://github.com/requests/requests-kerberos";
license = licenses.isc;
description = "An authentication handler for using Kerberos with Python Requests";
homepage = "https://github.com/requests/requests-kerberos";
license = licenses.isc;
maintainers = with maintainers; [ catern ];
};
}