From 353ed9b9b2ddfedeb5da8c35ee518117739685e3 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 5 Jul 2026 23:50:25 +0300 Subject: [PATCH] python3Packages.numpy: set passthru.tests to important dependent packages Per https://github.com/NixOS/nixpkgs/pull/538638#issuecomment-4885771895 --- pkgs/development/python-modules/numpy/2.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index e097ad7bb298..4af4511fdc81 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -22,7 +22,11 @@ openmpCheckPhaseHook, # Reverse dependency + astropy, + numba, + pandas, sage, + xarray, # tests hypothesis, @@ -202,7 +206,17 @@ buildPythonPackage (finalAttrs: { coreIncludeInnerDir = "${python.sitePackages}/numpy/_core/include"; coreIncludeDir = "${finalAttrs.finalPackage}/${finalAttrs.finalPackage.passthru.coreIncludeInnerDir}"; tests = { - inherit sage; + # NOTE: It is important to check these central dependent packages when + # issuing Numpy PRs and especially version bumps (even minor version + # bumps) - evidently these have caused issues in staging-next in the + # past. + inherit + astropy + numba + pandas + sage + xarray + ; }; };