1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 cryptography,
7 pyspnego,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "requests-ntlm";
13 version = "1.3.0";
14
15 format = "pyproject";
16
17 src = fetchPypi {
18 pname = "requests_ntlm";
19 inherit version;
20 hash = "sha256-spzCRiYj3/35uIxD4YDMtzW0AHIopUIiDogsWK5Wxmg=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [
26 cryptography
27 pyspnego
28 requests
29 ];
30
31 pythonImportsCheck = [ "requests_ntlm" ];
32
33 # Tests require networking
34 doCheck = false;
35
36 meta = with lib; {
37 description = "HTTP NTLM authentication support for python-requests";
38 homepage = "https://github.com/requests/requests-ntlm";
39 changelog = "https://github.com/requests/requests-ntlm/releases/tag/v${version}";
40 license = licenses.isc;
41 maintainers = with maintainers; [ elasticdog ];
42 platforms = platforms.all;
43 };
44}