8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
47 lines
857 B
Nix
47 lines
857 B
Nix
{ lib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, idna
|
|
, ipaddress
|
|
, pyasn1
|
|
, pyasn1-modules
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "service-identity";
|
|
version = "21.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyca";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
cryptography
|
|
idna
|
|
pyasn1
|
|
pyasn1-modules
|
|
] ++ lib.optionals (pythonOlder "3.3") [
|
|
ipaddress
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "service_identity" ];
|
|
|
|
meta = with lib; {
|
|
description = "Service identity verification for pyOpenSSL";
|
|
homepage = "https://service-identity.readthedocs.io";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|