diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index 46b338fb2ff1..84d1173a0465 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 @@ -83,6 +84,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 = [ @@ -161,6 +166,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"