1{ lib
2, pythonOlder
3, fetchFromGitHub
4, buildPythonPackage
5, setuptools
6, pyasn1
7, cryptography
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "pgpy";
13 version = "0.6.0";
14
15 disabled = pythonOlder "3.6";
16
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "SecurityInnovation";
21 repo = "PGPy";
22 rev = "v${version}";
23 hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 ];
29
30 propagatedBuildInputs = [
31 pyasn1
32 cryptography
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/SecurityInnovation/PGPy";
41 description = "Pretty Good Privacy for Python";
42 longDescription = ''
43 PGPy is a Python library for implementing Pretty Good Privacy into Python
44 programs, conforming to the OpenPGP specification per RFC 4880.
45 '';
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ eadwu dotlambda ];
48 };
49}