python3Packages.tpm2-pytss: fixup build
This fixes the build that broke after the upgrade of tpm2-tss to 4.0.1 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
parent
1b31fb062d
commit
82a3131335
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
, asn1crypto
|
||||
, cffi
|
||||
@ -28,6 +29,19 @@ buildPythonPackage rec {
|
||||
hash = "sha256-W1tLFFb9wa7vPSw5cL6qB4yPfyZIyXppvPYMWi+VyJc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# This patches the call to the C preprocessor not to include types
|
||||
# pycparser does not handle.
|
||||
# `hardeningDisable = [ "fortify" ]` would have the same effect but
|
||||
# would also disable hardening from generated FFI objects.
|
||||
#
|
||||
# backport of https://github.com/tpm2-software/tpm2-pytss/pull/523
|
||||
(fetchpatch {
|
||||
url = "https://github.com/baloo/tpm2-pytss/commit/099c069f28cfcd0a3019adebfeafa976f9395221.patch";
|
||||
sha256 = "sha256-wU2WfLYFDmkhGzYornZ386tB3zb3GYfGOTc+/QOFb1o=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cffi
|
||||
pkgconfig # this is the Python module
|
||||
|
Loading…
Reference in New Issue
Block a user