2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-04-12 12:48:02 +00:00
|
|
|
, fetchpatch
|
2021-08-05 21:33:18 +00:00
|
|
|
, 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-03-04 12:14:45 +00:00
|
|
|
version = "1.1.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-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-a1a5laZ4tNOtpVDFCK1t2IXWbyJytZMhuad2JtmA52I=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
patches = [
|
|
|
|
# Update version specifiers, https://github.com/ulodciv/httpx-ntlm/pull/15
|
|
|
|
(fetchpatch {
|
|
|
|
name = "update-version-specifiers.patch";
|
|
|
|
url = "https://github.com/ulodciv/httpx-ntlm/commit/dac67a957c5c23df29d4790ddbc7cc4bccfc0e35.patch";
|
|
|
|
hash = "sha256-YtgRrgGG/x7jvNg+NuQIrkOUdyD6Bk53fRaiXBwiV+o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|