diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-06-21 17:12:32 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-06-22 13:42:55 +0200 |
commit | 962a517aa1e7e93542e5fe1a298a5d74c727b73b (patch) | |
tree | 1db9b34a04c0d0a878e2aa7a9704a1e014de7fdd /pkgs/development/python-modules/scipy | |
parent | cd33c34578485df663fd9ed39ca5c080d8706824 (diff) |
python3Packages.scipy: run tests in parallel
Diffstat (limited to 'pkgs/development/python-modules/scipy')
-rw-r--r-- | pkgs/development/python-modules/scipy/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 0301db2b0b5eb..da615865d28b0 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -1,4 +1,4 @@ -{lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, numpy, pybind11}: +{lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, pytest-xdist, numpy, pybind11 }: let pybind = pybind11.overridePythonAttrs (oldAttrs: { @@ -16,7 +16,7 @@ in buildPythonPackage rec { sha256 = "a75b014d3294fce26852a9d04ea27b5671d86736beb34acdfc05859246260707"; }; - checkInputs = [ nose pytest ]; + checkInputs = [ nose pytest pytest-xdist ]; nativeBuildInputs = [ gfortran ]; buildInputs = [ numpy.blas pybind ]; propagatedBuildInputs = [ numpy ]; @@ -40,7 +40,7 @@ in buildPythonPackage rec { checkPhase = '' runHook preCheck pushd dist - ${python.interpreter} -c 'import scipy; scipy.test("fast", verbose=10)' + ${python.interpreter} -c "import scipy; scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES)" popd runHook postCheck ''; |