diff --git a/pkgs/development/python-modules/tpm2-pytss/default.nix b/pkgs/development/python-modules/tpm2-pytss/default.nix index 807f51dabe42..9560b1e694ed 100644 --- a/pkgs/development/python-modules/tpm2-pytss/default.nix +++ b/pkgs/development/python-modules/tpm2-pytss/default.nix @@ -44,6 +44,12 @@ buildPythonPackage rec { url = "https://github.com/tpm2-software/tpm2-pytss/pull/593.patch"; hash = "sha256-CNJnSIvUQ0Yvy0o7GdVfFZ7kHJd2hBt5Zv1lqgOeoks="; }) + # support cryptography >= 45.0.0 + # https://github.com/tpm2-software/tpm2-pytss/pull/643 + (fetchpatch { + url = "https://github.com/tpm2-software/tpm2-pytss/commit/6ab4c74e6fb3da7cd38e97c1f8e92532312f8439.patch"; + hash = "sha256-01Qe4qpD2IINc5Z120iVdPitiLBwdr8KNBjLFnGgE7E="; + }) ] ++ lib.optionals isCross [ # pytss will regenerate files from headers of tpm2-tss.