depot/third_party/nixpkgs/pkgs/development/python-modules/requests-credssp/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
938 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pyspnego,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "requests-credssp";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jborean93";
repo = pname;
rev = "v${version}";
hash = "sha256-HHLEmQ+mNjMjpR6J+emrKFM+2PiYq32o7Gnoo0gUrNA=";
};
propagatedBuildInputs = [
cryptography
pyspnego
requests
];
nativeCheckInputs = [ pytestCheckHook ];
passthru.optional-dependencies = {
kerberos = pyspnego.optional-dependencies.kerberos;
};
pythonImportsCheck = [ "requests_credssp" ];
meta = with lib; {
description = "HTTPS CredSSP authentication with the requests library";
homepage = "https://github.com/jborean93/requests-credssp";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}