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
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
2021-09-26 12:46:18 +00:00
|
|
|
, pytestCheckHook
|
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
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
2021-09-26 12:46:18 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-26 12:46:18 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|