ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / requests-kerberos / default.nix
blob3a1382061bd7d35282a7d3ab6419428f2f2bef58
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , pykerberos
6 , pyspnego
7 , pytest-mock
8 , pytestCheckHook
9 , pythonOlder
10 , requests
13 buildPythonPackage rec {
14   pname = "requests-kerberos";
15   version = "0.14.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.6";
20   src = fetchFromGitHub {
21     owner = "requests";
22     repo = pname;
23     rev = "v${version}";
24     hash = "sha256-Y9dTzFCgVmSnbnTE0kEfjpEkXDEA+uOqFHLkSC27YGg=";
25   };
27   propagatedBuildInputs = [
28     cryptography
29     requests
30     pykerberos
31     pyspnego
32   ];
34   checkInputs = [
35     pytestCheckHook
36     pytest-mock
37   ];
39   # avoid needing to package krb5
40   postPatch = ''
41     substituteInPlace setup.py \
42     --replace "pyspnego[kerberos]" "pyspnego"
43   '';
45   pythonImportsCheck = [
46     "requests_kerberos"
47   ];
49   meta = with lib; {
50     description = "An authentication handler for using Kerberos with Python Requests";
51     homepage = "https://github.com/requests/requests-kerberos";
52     license = licenses.isc;
53     maintainers = with maintainers; [ catern ];
54   };