f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
44 lines
912 B
Nix
44 lines
912 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
cryptography,
|
|
pyspnego,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-ntlm";
|
|
version = "1.3.0";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "requests_ntlm";
|
|
inherit version;
|
|
hash = "sha256-spzCRiYj3/35uIxD4YDMtzW0AHIopUIiDogsWK5Wxmg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
pyspnego
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "requests_ntlm" ];
|
|
|
|
# Tests require networking
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "HTTP NTLM authentication support for python-requests";
|
|
homepage = "https://github.com/requests/requests-ntlm";
|
|
changelog = "https://github.com/requests/requests-ntlm/releases/tag/v${version}";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|