2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-09-26 12:46:18 +00:00
|
|
|
, attrs
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
2021-09-26 12:46:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, idna
|
2020-04-24 23:36:52 +00:00
|
|
|
, ipaddress
|
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
2021-09-26 12:46:18 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "service-identity";
|
|
|
|
version = "21.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyca";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-pWc2rU3ULqEukMhd1ySY58lTm3s8f/ayQ7CY4nG24AQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-09-26 12:46:18 +00:00
|
|
|
attrs
|
|
|
|
cryptography
|
|
|
|
idna
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
] ++ lib.optionals (pythonOlder "3.3") [
|
|
|
|
ipaddress
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
pythonImportsCheck = [ "service_identity" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Service identity verification for pyOpenSSL";
|
|
|
|
homepage = "https://service-identity.readthedocs.io";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|