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