2021-07-31 19:52:05 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, httpx
|
2022-02-10 10:13:37 +01:00
|
|
|
, pyspnego
|
|
|
|
, pythonOlder
|
2021-07-31 19:52:05 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpx-ntlm";
|
2022-02-10 10:13:37 +01:00
|
|
|
version = "1.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-31 19:52:05 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "httpx_ntlm";
|
|
|
|
inherit version;
|
2022-04-20 16:15:45 +02:00
|
|
|
hash = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ=";
|
2021-07-31 19:52:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
httpx
|
2022-02-10 10:13:37 +01:00
|
|
|
pyspnego
|
2021-07-31 19:52:05 +02:00
|
|
|
];
|
|
|
|
|
2022-04-20 16:15:45 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyspnego==0.3.*" "pyspnego>=0.3.*" \
|
|
|
|
--replace "cryptography==36.0.*" "cryptography>=36.0.*"
|
|
|
|
'';
|
|
|
|
|
2021-07-31 19:52:05 +02:00
|
|
|
# https://github.com/ulodciv/httpx-ntlm/issues/5
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-10 10:13:37 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"httpx_ntlm"
|
|
|
|
];
|
2021-07-31 19:52:05 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "NTLM authentication support for HTTPX";
|
|
|
|
homepage = "https://github.com/ulodciv/httpx-ntlm";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|