From 0c096610cd8af4c047e0fc2e330163d35ed5f72a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Jul 2026 17:06:44 +0200 Subject: [PATCH] python3Packages.numexpr: relax thread limit hook and install pytest-run-parallel for pytest thread-unsafe mark. --- pkgs/development/python-modules/numexpr/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/numexpr/default.nix b/pkgs/development/python-modules/numexpr/default.nix index 426b53e7814d..39c0a4e673af 100644 --- a/pkgs/development/python-modules/numexpr/default.nix +++ b/pkgs/development/python-modules/numexpr/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchPypi, numpy, + pytest-run-parallel, pytestCheckHook, setuptools, # sets NUMEXPR_NUM_THREADS and OMP_NUM_THREADS for packages @@ -34,12 +35,18 @@ buildPythonPackage rec { ln -s ${numpy.cfg} site.cfg ''; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-run-parallel + pytestCheckHook + ]; propagatedNativeBuildInputs = [ checkPhaseThreadLimitHook ]; + # tests check for OMP_NUM_THREADS application and complete quick enough + env.dontLimitCheckPhaseThreads = 1; + preCheck = '' pushd $out '';