Unverified Commit 387d6a93 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.meson-python: ignore target version on darwin during tests

For darwin we set a minimal deployment target at 11.3 currently, which
meson-python correctly detects, only to the compare it to the running
platform version, which is currently 15.5.

We concluded in the upstream issue, that the tests likely should not
respect this environment variable, so we now unset it on darwin.
parent 9cfe4191
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
@@ -82,6 +83,16 @@ buildPythonPackage rec {
    "test_user_args"
    "test_vendored_meson"
  ];
  # 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
  preCheck =
    if stdenv.hostPlatform.isDarwin then
      ''
        unset MACOSX_DEPLOYMENT_TARGET
      ''
    else
      null;

  setupHooks = [ ./add-build-flags.sh ];