python3Packages.captum: reduce openmp threads during tests

This commit is contained in:
Martin Weinelt
2026-06-24 16:38:40 +02:00
parent 1d5fe677aa
commit d7ab41af3f
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
buildPythonPackage,
pytestCheckHook,
setuptools,
@@ -53,6 +52,10 @@ buildPythonPackage rec {
scikit-learn
];
preCheck = ''
export OMP_NUM_THREADS=1
'';
disabledTestPaths =
lib.optionals stdenv.hostPlatform.isDarwin [
# These tests may fail if multiple builds run them at the same time due