From 65ae5aabf4ca0dd7dc4a7be3abb692b1444e67c1 Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 23 May 2026 01:53:06 +0200 Subject: [PATCH] python3Packages.numpy: fix riscv64-linux build --- pkgs/development/python-modules/numpy/2.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index f336a573ca13..67c60475fd5f 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -149,6 +149,10 @@ buildPythonPackage (finalAttrs: { "test_big_arrays" # ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger tha... "test_multinomial_pvals_float32" # Failed: DID NOT RAISE ] + ++ lib.optionals stdenv.hostPlatform.isRiscV64 [ + "test_floor_division_errors" # FloatingPointError: invalid value encountered in floor_divide + "test_unary_spurious_fpexception" # AssertionError: Got warnings: [] + ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ # AssertionError: (np.int64(0), np.longdouble('9.9999999999999994515e-21'), np.longdouble('3.9696755572509052902e+20'), 'arctanh') "test_loss_of_precision"