From 31b743d9652d5bad2708523a96179b80d575ede1 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 10 Oct 2025 13:33:14 +0200 Subject: [PATCH] python3Packages.numpy: Disable borked test on ppc64 --- pkgs/development/python-modules/numpy/2.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index 397b071909e8..7cee327a222a 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -19,6 +19,7 @@ # native dependencies blas, + coreutils, lapack, # Reverse dependency @@ -81,6 +82,10 @@ buildPythonPackage rec { # remove needless reference to full Python path stored in built wheel substituteInPlace numpy/meson.build \ --replace-fail 'py.full_path()' "'python'" + + # Test_POWER_Features::test_features - FileNotFoundError: [Errno 2] No such file or directory: '/bin/true' + substituteInPlace numpy/_core/tests/test_cpu_features.py \ + --replace-fail '/bin/true' '${lib.getExe' coreutils "true"}' ''; build-system = [ @@ -159,6 +164,10 @@ buildPythonPackage rec { # AssertionError: (np.int64(0), np.longdouble('9.9999999999999994515e-21'), np.longdouble('3.9696755572509052902e+20'), 'arctanh') "test_loss_of_precision" ] + ++ lib.optionals (stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isBigEndian) [ + # https://github.com/numpy/numpy/issues/29918 + "test_sq_cases" + ] ++ lib.optionals (stdenv.hostPlatform ? gcc.arch) [ # remove if https://github.com/numpy/numpy/issues/27460 is resolved "test_validate_transcendentals"