2022-09-26 20:19:40 -07:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2022-11-24 10:24:49 -08:00
|
|
|
, setuptools
|
2022-09-26 20:19:40 -07:00
|
|
|
, pyasn1
|
|
|
|
, cryptography
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2019-01-21 11:31:46 -05:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgpy";
|
2022-11-24 10:24:49 -08:00
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2019-01-21 11:31:46 -05:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SecurityInnovation";
|
|
|
|
repo = "PGPy";
|
2021-05-06 13:40:40 +02:00
|
|
|
rev = "v${version}";
|
2022-11-24 10:24:49 -08:00
|
|
|
hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU=";
|
2019-01-21 11:31:46 -05:00
|
|
|
};
|
|
|
|
|
2022-11-24 10:24:49 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2022-09-26 20:19:40 -07:00
|
|
|
];
|
|
|
|
|
2019-01-21 11:31:46 -05:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
|
|
|
cryptography
|
2021-05-06 13:40:40 +02:00
|
|
|
];
|
2019-01-21 11:31:46 -05:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-03 06:38:31 +01:00
|
|
|
pytestCheckHook
|
2019-01-21 11:31:46 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/SecurityInnovation/PGPy";
|
2022-11-24 10:24:49 -08:00
|
|
|
description = "Pretty Good Privacy for Python";
|
2019-01-21 11:31:46 -05:00
|
|
|
longDescription = ''
|
2022-11-24 10:24:49 -08:00
|
|
|
PGPy is a Python library for implementing Pretty Good Privacy into Python
|
|
|
|
programs, conforming to the OpenPGP specification per RFC 4880.
|
2019-01-21 11:31:46 -05:00
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
2021-05-06 13:40:40 +02:00
|
|
|
maintainers = with maintainers; [ eadwu dotlambda ];
|
2019-01-21 11:31:46 -05:00
|
|
|
};
|
|
|
|
}
|