python3Packages.numexpr: relax thread limit hook

and install pytest-run-parallel for pytest thread-unsafe mark.
This commit is contained in:
Martin Weinelt
2026-07-12 17:06:44 +02:00
committed by Vladimír Čunát
parent bc21b349f4
commit 0c096610cd
@@ -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
'';