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