2019-01-21 16:31:46 +00:00
|
|
|
{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
|
|
|
|
, six, enum34, pyasn1, cryptography, singledispatch
|
2021-01-03 05:38:31 +00:00
|
|
|
, fetchPypi, pytestCheckHook }:
|
2019-01-21 16:31:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgpy";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SecurityInnovation";
|
|
|
|
repo = "PGPy";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1v2b1dyq1sl48d2gw7vn4hv6sasd9ihpzzcq8yvxj9dgfak2y663";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
pyasn1
|
|
|
|
cryptography
|
|
|
|
singledispatch
|
|
|
|
] ++ lib.optional (!isPy3k) enum34;
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-03 05:38:31 +00:00
|
|
|
pytestCheckHook
|
2019-01-21 16:31:46 +00:00
|
|
|
];
|
|
|
|
|
2021-01-03 05:38:31 +00:00
|
|
|
disabledTests = [ "test_sign_string" "test_verify_string" ];
|
2019-01-21 16:31:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/SecurityInnovation/PGPy";
|
2019-01-21 16:31:46 +00:00
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|