1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, cryptography
5, requests
6, pykerberos
7, pytestCheckHook
8, mock
9}:
10
11buildPythonPackage rec {
12 pname = "requests-kerberos";
13 version = "0.12.0";
14
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 };
22
23 propagatedBuildInputs = [
24 cryptography
25 requests
26 pykerberos
27 ];
28
29 checkInputs = [
30 mock
31 pytestCheckHook
32 ];
33
34 # they have a setup.py which mentions a test suite that doesn't exist...
35 patches = [ ./fix_setup.patch ];
36
37 pythonImportsCheck = [ "requests_kerberos" ];
38
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 };
45}