about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pem/default.nix
blob: 3ef5b7ffc75c800fbe89128c11352cfafc221747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, certifi
, cryptography
, pretend
, pyopenssl
, twisted
}:

buildPythonPackage rec {
  pname = "pem";
  version = "21.2.0";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "hynek";
    repo = pname;
    rev = version;
    hash = "sha256-mftLdgtgb5J4zwsb1F/4v4K7XTy4VSZBMy3zPV2f1uA=";
  };

  nativeCheckInputs = [
    certifi
    cryptography
    pretend
    pyopenssl
    pytestCheckHook
    twisted
    twisted.optional-dependencies.tls
  ];

  pythonImportsCheck = [
    "pem"
  ];

  meta = with lib; {
    homepage = "https://pem.readthedocs.io/";
    description = "Easy PEM file parsing in Python.";
    license = licenses.mit;
    maintainers = with maintainers; [ nyanotech ];
  };
}