1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 httpx,
6 pyspnego,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "httpx-ntlm";
12 version = "1.4.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 pname = "httpx_ntlm";
19 inherit version;
20 hash = "sha256-Qb6KK6hRQ0hOYX3LkX1LGeOuEq/caIYipJAQNJk7U+Q=";
21 };
22
23 propagatedBuildInputs = [
24 httpx
25 pyspnego
26 ];
27
28 # https://github.com/ulodciv/httpx-ntlm/issues/5
29 doCheck = false;
30
31 pythonImportsCheck = [ "httpx_ntlm" ];
32
33 meta = with lib; {
34 description = "NTLM authentication support for HTTPX";
35 homepage = "https://github.com/ulodciv/httpx-ntlm";
36 changelog = "https://github.com/ulodciv/httpx-ntlm/releases/tag/${version}";
37 license = licenses.isc;
38 maintainers = with maintainers; [ fab ];
39 };
40}