|
|
|
@ -1,31 +1,31 @@ |
|
|
|
|
{ lib, isPy3k, fetchFromGitHub, buildPythonPackage |
|
|
|
|
{ lib, pythonOlder, fetchFromGitHub, buildPythonPackage |
|
|
|
|
, six, enum34, pyasn1, cryptography, singledispatch ? null |
|
|
|
|
, fetchPypi, pytestCheckHook }: |
|
|
|
|
, pytestCheckHook }: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "pgpy"; |
|
|
|
|
version = "0.5.2"; |
|
|
|
|
version = "0.5.4"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "SecurityInnovation"; |
|
|
|
|
repo = "PGPy"; |
|
|
|
|
rev = version; |
|
|
|
|
sha256 = "1v2b1dyq1sl48d2gw7vn4hv6sasd9ihpzzcq8yvxj9dgfak2y663"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "03pch39y3hi4ici6y6lvz0j0zram8dw2wvnmq1zyjy3vyvm1ms4a"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
six |
|
|
|
|
pyasn1 |
|
|
|
|
cryptography |
|
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [ |
|
|
|
|
singledispatch |
|
|
|
|
] ++ lib.optional (!isPy3k) enum34; |
|
|
|
|
enum34 |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
disabledTests = [ "test_sign_string" "test_verify_string" ]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
homepage = "https://github.com/SecurityInnovation/PGPy"; |
|
|
|
|
description = "Pretty Good Privacy for Python 2 and 3"; |
|
|
|
@ -35,6 +35,6 @@ buildPythonPackage rec { |
|
|
|
|
4880. |
|
|
|
|
''; |
|
|
|
|
license = licenses.bsd3; |
|
|
|
|
maintainers = with maintainers; [ eadwu ]; |
|
|
|
|
maintainers = with maintainers; [ eadwu dotlambda ]; |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|