From 846f0d7257362b7b691189415d8747e5371317e4 Mon Sep 17 00:00:00 2001 From: jaredmontoya <49511278+jaredmontoya@users.noreply.github.com> Date: Wed, 5 Aug 2026 13:11:24 +0200 Subject: [PATCH] python312Packages.scipy: fix build failure --- pkgs/development/python-modules/scipy/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 388e665f78cc..967f0f49c7a4 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -134,6 +134,11 @@ buildPythonPackage (finalAttrs: { ++ lib.optionals (python.isPy311) [ # https://github.com/scipy/scipy/issues/22789 Observed only with Python 3.11 "test_funcs" + ] + ++ lib.optionals (python.isPy312) [ + # failure caused by the inconsistent RNG implementation across python versions + # https://github.com/NixOS/nixpkgs/issues/547063 + "test_support_moments_sample" ]; doCheck = !(stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin);