diff options
Diffstat (limited to 'pkgs/development/python-modules/requests-ntlm/default.nix')
-rw-r--r-- | pkgs/development/python-modules/requests-ntlm/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/requests-ntlm/default.nix b/pkgs/development/python-modules/requests-ntlm/default.nix new file mode 100644 index 0000000000000..43a002e1e19e8 --- /dev/null +++ b/pkgs/development/python-modules/requests-ntlm/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, cryptography +, pyspnego +, requests +}: + +buildPythonPackage rec { + pname = "requests-ntlm"; + version = "1.2.0"; + + format = "pyproject"; + + src = fetchPypi { + pname = "requests_ntlm"; + inherit version; + hash = "sha256-M8KF9QdOMXy90zjRma+kanwBEy5cER02vUFVNOm5Fqg="; + }; + + 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; + }; +} |