python312Packages.contourpy: fix cross compilation

This commit is contained in:
Colin
2024-07-28 15:59:23 +00:00
parent 38b57cc2a9
commit e5226da363
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
# build
@@ -39,6 +40,12 @@ let
hash = "sha256-Qd6FC7SgFyC/BvOPWVkr2ZfKVMVAknLlidNRq3zcWU0=";
};
# prevent unnecessary references to the build python when cross compiling
postPatch = ''
substituteInPlace lib/contourpy/util/_build_config.py.in \
--replace-fail '@python_path@' "${python.interpreter}"
'';
nativeBuildInputs = [
meson
meson-python