2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-15 16:39:30 +00:00
|
|
|
, setuptools
|
|
|
|
, cryptography
|
|
|
|
, pyspnego
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "requests-ntlm";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "requests_ntlm";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-M8KF9QdOMXy90zjRma+kanwBEy5cER02vUFVNOm5Fqg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
pyspnego
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "requests_ntlm" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP NTLM authentication support for python-requests";
|
|
|
|
homepage = "https://github.com/requests/requests-ntlm";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/requests/requests-ntlm/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|