Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pem / default.nix
blob84500acaccb0f7f871edcfc0952cfda7a37cb089
1 { lib
2 , buildPythonPackage
3 , certifi
4 , cryptography
5 , fetchFromGitHub
6 , hatch-fancy-pypi-readme
7 , hatch-vcs
8 , hatchling
9 , pretend
10 , pyopenssl
11 , pytestCheckHook
12 , pythonOlder
13 , twisted
16 buildPythonPackage rec {
17   pname = "pem";
18   version = "23.1.0";
19   format = "pyproject";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "hynek";
25     repo = pname;
26     rev = "refs/tags/${version}";
27     hash = "sha256-rVYlnvISGugh9qvf3mdrIyELmeOUU4g6291HeoMkoQc=";
28   };
30   nativeBuildInputs = [
31     hatchling
32     hatch-fancy-pypi-readme
33     hatch-vcs
34   ];
36   nativeCheckInputs = [
37     certifi
38     cryptography
39     pretend
40     pyopenssl
41     pytestCheckHook
42     twisted
43   ] ++ twisted.optional-dependencies.tls;
45   pythonImportsCheck = [
46     "pem"
47   ];
49   meta = with lib; {
50     description = "Easy PEM file parsing in Python";
51     homepage = "https://pem.readthedocs.io/";
52     changelog = "https://github.com/hynek/pem/blob/${version}/CHANGELOG.md";
53     license = licenses.mit;
54     maintainers = with maintainers; [ nyanotech ];
55   };