python310Packages.pgpy: cryptography 38 fix

Pull patch from upstream that fixes pgpy after the update to
cryptography 38.

+22 -4
+22 -4
pkgs/development/python-modules/pgpy/default.nix
··· 1 - { lib, pythonOlder, fetchFromGitHub, buildPythonPackage 2 - , six, enum34, pyasn1, cryptography 3 - , pytestCheckHook }: 1 + { lib 2 + , pythonOlder 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , buildPythonPackage 6 + , six 7 + , enum34 8 + , pyasn1 9 + , cryptography 10 + , pytestCheckHook 11 + }: 4 12 5 13 buildPythonPackage rec { 6 14 pname = "pgpy"; ··· 10 18 owner = "SecurityInnovation"; 11 19 repo = "PGPy"; 12 20 rev = "v${version}"; 13 - sha256 = "03pch39y3hi4ici6y6lvz0j0zram8dw2wvnmq1zyjy3vyvm1ms4a"; 21 + hash = "sha256-iuga6vZ7eOl/wNVuLnhDVeUPJPibGm8iiyTC4dOA7A4="; 14 22 }; 23 + 24 + patches = [ 25 + # Fixes the issue in https://github.com/SecurityInnovation/PGPy/issues/402. 26 + # by pulling in https://github.com/SecurityInnovation/PGPy/pull/403. 27 + (fetchpatch { 28 + name = "crytography-38-support.patch"; 29 + url = "https://github.com/SecurityInnovation/PGPy/commit/d84597eb8417a482433ff51dc6b13060d4b2e686.patch"; 30 + hash = "sha256-dviXCSGtPguROHVZ1bt/eEfpATjehm8jZ5BeVjxdb8U="; 31 + }) 32 + ]; 15 33 16 34 propagatedBuildInputs = [ 17 35 six