2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2022-11-27 09:42:12 +00:00
|
|
|
, setuptools
|
2022-09-30 11:47:45 +00:00
|
|
|
, pyasn1
|
|
|
|
, cryptography
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgpy";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
format = "pyproject";
|
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}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
|
|
|
cryptography
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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";
|
2022-11-27 09:42:12 +00:00
|
|
|
description = "Pretty Good Privacy for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2022-11-27 09:42:12 +00:00
|
|
|
PGPy is a Python library for implementing Pretty Good Privacy into Python
|
|
|
|
programs, conforming to the OpenPGP specification per RFC 4880.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ eadwu dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|