Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / requests-kerberos / default.nix
blob0a023dab871498aa9898e66340d1800a19c366d2
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , cryptography
5 , requests
6 , pykerberos
7 , pytestCheckHook
8 , mock
9 }:
11 buildPythonPackage rec {
12   pname = "requests-kerberos";
13   version = "0.12.0";
15   # tests are not present in the PyPI version
16   src = fetchFromGitHub {
17     owner = "requests";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6";
21   };
23   propagatedBuildInputs = [
24     cryptography
25     requests
26     pykerberos
27   ];
29   checkInputs = [
30     mock
31     pytestCheckHook
32   ];
34   # they have a setup.py which mentions a test suite that doesn't exist...
35   patches = [ ./fix_setup.patch ];
37   pythonImportsCheck = [ "requests_kerberos" ];
39   meta = with lib; {
40     description = "An authentication handler for using Kerberos with Python Requests";
41     homepage = "https://github.com/requests/requests-kerberos";
42     license = licenses.isc;
43     maintainers = with maintainers; [ catern ];
44   };