1{
2 lib,
3 pythonOlder,
4 fetchFromGitHub,
5 buildPythonPackage,
6 setuptools,
7 pyasn1,
8 cryptography,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "pgpy-dtc";
14 version = "0.1.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "DigitalTrustCenter";
21 repo = "PGPy_dtc";
22 tag = version;
23 hash = "sha256-0zv2gtgp/iGDQescaDpng1gqbgjv7iXFvtwEt3YIPy4=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pyasn1
30 cryptography
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "pgpy_dtc" ];
36
37 meta = {
38 homepage = "https://github.com/DigitalTrustCenter/PGPy_dtc";
39 changelog = "https://github.com/DigitalTrustCenter/PGPy_dtc/releases/tag/${src.tag}";
40 description = "Pretty Good Privacy for Python";
41 license = lib.licenses.eupl12;
42 maintainers = with lib.maintainers; [ networkexception ];
43 };
44}