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 }: 4 5 buildPythonPackage rec { 6 pname = "pgpy"; ··· 10 owner = "SecurityInnovation"; 11 repo = "PGPy"; 12 rev = "v${version}"; 13 - sha256 = "03pch39y3hi4ici6y6lvz0j0zram8dw2wvnmq1zyjy3vyvm1ms4a"; 14 }; 15 16 propagatedBuildInputs = [ 17 six
··· 1 + { lib 2 + , pythonOlder 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , buildPythonPackage 6 + , six 7 + , enum34 8 + , pyasn1 9 + , cryptography 10 + , pytestCheckHook 11 + }: 12 13 buildPythonPackage rec { 14 pname = "pgpy"; ··· 18 owner = "SecurityInnovation"; 19 repo = "PGPy"; 20 rev = "v${version}"; 21 + hash = "sha256-iuga6vZ7eOl/wNVuLnhDVeUPJPibGm8iiyTC4dOA7A4="; 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 + ]; 33 34 propagatedBuildInputs = [ 35 six