Merge pull request #202719 from dotlambda/pgpy-0.6.0
python310Packages.pgpy: 0.5.4 -> 0.6.0
This commit is contained in:
commit
59acc59808
|
@ -1,10 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, six
|
, setuptools
|
||||||
, enum34
|
|
||||||
, pyasn1
|
, pyasn1
|
||||||
, cryptography
|
, cryptography
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -12,49 +10,38 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pgpy";
|
pname = "pgpy";
|
||||||
version = "0.5.4";
|
version = "0.6.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SecurityInnovation";
|
owner = "SecurityInnovation";
|
||||||
repo = "PGPy";
|
repo = "PGPy";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-iuga6vZ7eOl/wNVuLnhDVeUPJPibGm8iiyTC4dOA7A4=";
|
hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [
|
||||||
# Fixes the issue in https://github.com/SecurityInnovation/PGPy/issues/402.
|
setuptools
|
||||||
# by pulling in https://github.com/SecurityInnovation/PGPy/pull/403.
|
|
||||||
(fetchpatch {
|
|
||||||
name = "crytography-38-support.patch";
|
|
||||||
url = "https://github.com/SecurityInnovation/PGPy/commit/d84597eb8417a482433ff51dc6b13060d4b2e686.patch";
|
|
||||||
hash = "sha256-dviXCSGtPguROHVZ1bt/eEfpATjehm8jZ5BeVjxdb8U=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
|
||||||
pyasn1
|
pyasn1
|
||||||
cryptography
|
cryptography
|
||||||
] ++ lib.optionals (pythonOlder "3.4") [
|
|
||||||
enum34
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# assertions contains extra: IDEA has been deprecated
|
|
||||||
"test_encrypt_bad_cipher"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/SecurityInnovation/PGPy";
|
homepage = "https://github.com/SecurityInnovation/PGPy";
|
||||||
description = "Pretty Good Privacy for Python 2 and 3";
|
description = "Pretty Good Privacy for Python";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
PGPy is a Python (2 and 3) library for implementing Pretty Good Privacy
|
PGPy is a Python library for implementing Pretty Good Privacy into Python
|
||||||
into Python programs, conforming to the OpenPGP specification per RFC
|
programs, conforming to the OpenPGP specification per RFC 4880.
|
||||||
4880.
|
|
||||||
'';
|
'';
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ eadwu dotlambda ];
|
maintainers = with maintainers; [ eadwu dotlambda ];
|
||||||
|
|
Loading…
Reference in a new issue