1{ lib
2, attrs
3, buildPythonPackage
4, cryptography
5, fetchFromGitHub
6, hatch-fancy-pypi-readme
7, hatch-vcs
8, hatchling
9, idna
10, pyasn1
11, pyasn1-modules
12, pytestCheckHook
13, pythonOlder
14}:
15
16buildPythonPackage rec {
17 pname = "service-identity";
18 version = "23.1.0";
19 format = "pyproject";
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchFromGitHub {
24 owner = "pyca";
25 repo = pname;
26 rev = "refs/tags/${version}";
27 hash = "sha256-PGDtsDgRwh7GuuM4OuExiy8L4i3Foo+OD0wMrndPkvo=";
28 };
29
30 nativeBuildInputs = [
31 hatch-fancy-pypi-readme
32 hatch-vcs
33 hatchling
34 ];
35
36 propagatedBuildInputs = [
37 attrs
38 cryptography
39 idna
40 pyasn1
41 pyasn1-modules
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [
49 "service_identity"
50 ];
51
52 meta = with lib; {
53 description = "Service identity verification for pyOpenSSL";
54 homepage = "https://service-identity.readthedocs.io";
55 changelog = "https://github.com/pyca/service-identity/releases/tag/${version}";
56 license = licenses.mit;
57 maintainers = with maintainers; [ fab ];
58 };
59}