2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, httpx
|
2022-02-10 20:34:41 +00:00
|
|
|
, pyspnego
|
|
|
|
, pythonOlder
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpx-ntlm";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.4.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "httpx_ntlm";
|
|
|
|
inherit version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Qb6KK6hRQ0hOYX3LkX1LGeOuEq/caIYipJAQNJk7U+Q=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
2022-02-10 20:34:41 +00:00
|
|
|
pyspnego
|
2021-08-05 21:33:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# https://github.com/ulodciv/httpx-ntlm/issues/5
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"httpx_ntlm"
|
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "NTLM authentication support for HTTPX";
|
|
|
|
homepage = "https://github.com/ulodciv/httpx-ntlm";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/ulodciv/httpx-ntlm/releases/tag/${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|