chipsec: fix tests with python312

This commit is contained in:
natsukium 2024-06-21 22:17:03 +09:00 committed by Martin Weinelt
parent f8272c0f2d
commit 2f42c81512

View File

@ -23,6 +23,11 @@ python3.pkgs.buildPythonApplication rec {
patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ];
postPatch = ''
substituteInPlace tests/software/util.py \
--replace-fail "assertRegexpMatches" "assertRegex"
'';
KSRC = lib.optionalString withDriver "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
nativeBuildInputs = [