depot/third_party/nixpkgs/pkgs/development/python-modules/requests-ntlm/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
912 B
Nix

{
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;
};
}