Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / service-identity / default.nix
blob53fa54a5aff093df933d293f8acc76642809490c
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
16 buildPythonPackage rec {
17   pname = "service-identity";
18   version = "23.1.0";
19   format = "pyproject";
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "pyca";
25     repo = pname;
26     rev = "refs/tags/${version}";
27     hash = "sha256-PGDtsDgRwh7GuuM4OuExiy8L4i3Foo+OD0wMrndPkvo=";
28   };
30   nativeBuildInputs = [
31     hatch-fancy-pypi-readme
32     hatch-vcs
33     hatchling
34   ];
36   propagatedBuildInputs = [
37     attrs
38     cryptography
39     idna
40     pyasn1
41     pyasn1-modules
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "service_identity"
50   ];
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   };