diff --git a/pkgs/development/python-modules/pgpy/default.nix b/pkgs/development/python-modules/pgpy/default.nix index 336d077f2aa..2b548e7f474 100644 --- a/pkgs/development/python-modules/pgpy/default.nix +++ b/pkgs/development/python-modules/pgpy/default.nix @@ -1,10 +1,8 @@ { lib , pythonOlder , fetchFromGitHub -, fetchpatch , buildPythonPackage -, six -, enum34 +, setuptools , pyasn1 , cryptography , pytestCheckHook @@ -12,49 +10,38 @@ buildPythonPackage rec { pname = "pgpy"; - version = "0.5.4"; + version = "0.6.0"; + + disabled = pythonOlder "3.6"; + + format = "pyproject"; src = fetchFromGitHub { owner = "SecurityInnovation"; repo = "PGPy"; rev = "v${version}"; - hash = "sha256-iuga6vZ7eOl/wNVuLnhDVeUPJPibGm8iiyTC4dOA7A4="; + hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU="; }; - patches = [ - # Fixes the issue in https://github.com/SecurityInnovation/PGPy/issues/402. - # 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="; - }) + nativeBuildInputs = [ + setuptools ]; propagatedBuildInputs = [ - six pyasn1 cryptography - ] ++ lib.optionals (pythonOlder "3.4") [ - enum34 ]; checkInputs = [ pytestCheckHook ]; - disabledTests = [ - # assertions contains extra: IDEA has been deprecated - "test_encrypt_bad_cipher" - ]; - meta = with lib; { homepage = "https://github.com/SecurityInnovation/PGPy"; - description = "Pretty Good Privacy for Python 2 and 3"; + description = "Pretty Good Privacy for Python"; 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. + PGPy is a Python library for implementing Pretty Good Privacy into Python + programs, conforming to the OpenPGP specification per RFC 4880. ''; license = licenses.bsd3; maintainers = with maintainers; [ eadwu dotlambda ];