python3Packages.joblib: fix tests

This commit is contained in:
Jonathan Ringer 2020-11-30 12:53:05 -08:00 committed by Frederik Rietdijk
parent 26ed734e51
commit 0500a26418

View file

@ -4,7 +4,7 @@
, fetchPypi , fetchPypi
, stdenv , stdenv
, numpydoc , numpydoc
, pytest , pytestCheckHook
, python-lz4 , python-lz4
, setuptools , setuptools
, sphinx , sphinx
@ -21,19 +21,21 @@ buildPythonPackage rec {
sha256 = "9e284edd6be6b71883a63c9b7f124738a3c16195513ad940eae7e3438de885d5"; sha256 = "9e284edd6be6b71883a63c9b7f124738a3c16195513ad940eae7e3438de885d5";
}; };
checkInputs = [ sphinx numpydoc pytest ]; checkInputs = [ sphinx numpydoc pytestCheckHook ];
propagatedBuildInputs = [ python-lz4 setuptools ]; propagatedBuildInputs = [ python-lz4 setuptools ];
# test_disk_used is broken: https://github.com/joblib/joblib/issues/57 pytestFlagsArray = [ "joblib/test" ];
# test_dispatch_multiprocessing is broken only on Darwin. disabledTests = [
checkPhase = '' "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test "test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests
''; ] ++ lib.optionals stdenv.isDarwin [
"test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
];
meta = { meta = with lib; {
description = "Lightweight pipelining: using Python functions as pipeline jobs"; description = "Lightweight pipelining: using Python functions as pipeline jobs";
homepage = "https://joblib.readthedocs.io/"; homepage = "https://joblib.readthedocs.io/";
license = lib.licenses.bsd3; license = licenses.bsd3;
maintainers = with lib.maintainers; [ costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }