2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, 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";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "httpx_ntlm";
|
|
|
|
inherit version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
httpx
|
2022-02-10 20:34:41 +00:00
|
|
|
pyspnego
|
2021-08-05 21:33:18 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyspnego==0.3.*" "pyspnego>=0.3.*" \
|
|
|
|
--replace "cryptography==36.0.*" "cryptography>=36.0.*"
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|