2021-05-20 23:08:51 +00:00
|
|
|
{ lib, pythonOlder, fetchFromGitHub, buildPythonPackage
|
2021-04-26 19:14:03 +00:00
|
|
|
, six, enum34, pyasn1, cryptography, singledispatch ? null
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgpy";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.5.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SecurityInnovation";
|
|
|
|
repo = "PGPy";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03pch39y3hi4ici6y6lvz0j0zram8dw2wvnmq1zyjy3vyvm1ms4a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
pyasn1
|
|
|
|
cryptography
|
2021-05-20 23:08:51 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [
|
2020-04-24 23:36:52 +00:00
|
|
|
singledispatch
|
2021-05-20 23:08:51 +00:00
|
|
|
enum34
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-09 10:05:03 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/SecurityInnovation/PGPy";
|
|
|
|
description = "Pretty Good Privacy for Python 2 and 3";
|
|
|
|
longDescription = ''
|
|
|
|
PGPy is a Python (2 and 3) library for implementing Pretty Good Privacy
|
|
|
|
into Python programs, conforming to the OpenPGP specification per RFC
|
|
|
|
4880.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ eadwu dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|