1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 pyspnego,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "requests-credssp";
14 version = "2.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "jborean93";
21 repo = "requests-credssp";
22 rev = "v${version}";
23 hash = "sha256-HHLEmQ+mNjMjpR6J+emrKFM+2PiYq32o7Gnoo0gUrNA=";
24 };
25
26 propagatedBuildInputs = [
27 cryptography
28 pyspnego
29 requests
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 optional-dependencies = {
35 kerberos = pyspnego.optional-dependencies.kerberos;
36 };
37
38 pythonImportsCheck = [ "requests_credssp" ];
39
40 meta = with lib; {
41 description = "HTTPS CredSSP authentication with the requests library";
42 homepage = "https://github.com/jborean93/requests-credssp";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}