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
|
2023-08-10 07:59:29 +00:00
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2021-09-26 12:46:18 +00:00
|
|
|
, idna
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
2021-09-26 12:46:18 +00:00
|
|
|
, pytestCheckHook
|
2023-08-10 07:59:29 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "service-identity";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "23.1.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyca";
|
|
|
|
repo = pname;
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-PGDtsDgRwh7GuuM4OuExiy8L4i3Foo+OD0wMrndPkvo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-09-26 12:46:18 +00:00
|
|
|
attrs
|
|
|
|
cryptography
|
|
|
|
idna
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2023-08-10 07:59:29 +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";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/pyca/service-identity/releases/tag/${version}";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|