python3Packages.dask: limit processes on tests

gstqt5
Jonathan Ringer 2020-10-04 09:52:44 -07:00 committed by Jon
parent 8524c682f6
commit 2c5d3313e2
1 changed files with 7 additions and 2 deletions

View File

@ -32,8 +32,6 @@ buildPythonPackage rec {
pytest_xdist # takes >10mins to run single-threaded
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
dontUseSetuptoolsCheck = true;
propagatedBuildInputs = [
@ -56,6 +54,13 @@ buildPythonPackage rec {
--replace "cmdclass=versioneer.get_cmdclass()," ""
'';
# dask test suite with consistently fail when using high core counts
preCheck = ''
NIX_BUILD_CORES=$((NIX_BUILD_CORES > 8 ? 8 : NIX_BUILD_CORES))
'';
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
disabledTests = [
"test_argwhere_str"
"test_count_nonzero_str"