diff --git a/pkgs/development/python-modules/captum/default.nix b/pkgs/development/python-modules/captum/default.nix index 32889473641c..455eac5c5fc1 100644 --- a/pkgs/development/python-modules/captum/default.nix +++ b/pkgs/development/python-modules/captum/default.nix @@ -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