python3Packages.tpm2-pytss: fix build failure (#418530)

authored by Aleksana and committed by GitHub 4206c4cb 7680884b

+6
+6
pkgs/development/python-modules/tpm2-pytss/default.nix
··· 44 url = "https://github.com/tpm2-software/tpm2-pytss/pull/593.patch"; 45 hash = "sha256-CNJnSIvUQ0Yvy0o7GdVfFZ7kHJd2hBt5Zv1lqgOeoks="; 46 }) 47 ] 48 ++ lib.optionals isCross [ 49 # pytss will regenerate files from headers of tpm2-tss.
··· 44 url = "https://github.com/tpm2-software/tpm2-pytss/pull/593.patch"; 45 hash = "sha256-CNJnSIvUQ0Yvy0o7GdVfFZ7kHJd2hBt5Zv1lqgOeoks="; 46 }) 47 + # support cryptography >= 45.0.0 48 + # https://github.com/tpm2-software/tpm2-pytss/pull/643 49 + (fetchpatch { 50 + url = "https://github.com/tpm2-software/tpm2-pytss/commit/6ab4c74e6fb3da7cd38e97c1f8e92532312f8439.patch"; 51 + hash = "sha256-01Qe4qpD2IINc5Z120iVdPitiLBwdr8KNBjLFnGgE7E="; 52 + }) 53 ] 54 ++ lib.optionals isCross [ 55 # pytss will regenerate files from headers of tpm2-tss.