python3Packages.numpy: fix riscv64-linux build (#523194)

This commit is contained in:
Sandro
2026-05-24 17:02:56 +00:00
committed by GitHub
@@ -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 <class 'ValueError'>
]
++ lib.optionals stdenv.hostPlatform.isRiscV64 [
"test_floor_division_errors" # FloatingPointError: invalid value encountered in floor_divide
"test_unary_spurious_fpexception" # AssertionError: Got warnings: [<warnings.WarningMessage ...>]
]
++ 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"