python3Packages.meson-python: fixup darwin build again

The patch doesn't fully fix the problem:
https://github.com/mesonbuild/meson-python/pull/761#issuecomment-2963856105
and I want to avoid rebuilding on Linux again this iteration.
This commit is contained in:
Vladimír Čunát 2025-06-12 17:02:13 +02:00
parent 9555d37496
commit d59eb93f86
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
fetchpatch,
@ -56,6 +57,18 @@ buildPythonPackage rec {
pytest-mock
];
# meson-python respectes MACOSX_DEPLOYMENT_TARGET, but compares it with the
# actual platform version during tests, which mismatches.
# https://github.com/mesonbuild/meson-python/issues/760
# FIXME: drop in 0.19.0
preCheck =
if stdenv.hostPlatform.isDarwin then
''
unset MACOSX_DEPLOYMENT_TARGET
''
else
null;
setupHooks = [ ./add-build-flags.sh ];
meta = {