aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-11-30 12:53:05 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2020-12-01 14:44:25 +0100
commit0500a264188078f6252abeb8da39539015e01a2d (patch)
treeb3d1c74058f3ce2dda04e88b11d19d7c1db3e4d9
parent26ed734e5133c7fb04221692aa99fa7110388eda (diff)
python3Packages.joblib: fix tests
-rw-r--r--pkgs/development/python-modules/joblib/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/joblib/default.nix b/pkgs/development/python-modules/joblib/default.nix
index 58fbd8b7b646..16edf3c04e14 100644
--- a/pkgs/development/python-modules/joblib/default.nix
+++ b/pkgs/development/python-modules/joblib/default.nix
@@ -4,7 +4,7 @@
, fetchPypi
, stdenv
, numpydoc
-, pytest
+, pytestCheckHook
, python-lz4
, setuptools
, sphinx
@@ -21,19 +21,21 @@ buildPythonPackage rec {
sha256 = "9e284edd6be6b71883a63c9b7f124738a3c16195513ad940eae7e3438de885d5";
};
- checkInputs = [ sphinx numpydoc pytest ];
+ checkInputs = [ sphinx numpydoc pytestCheckHook ];
propagatedBuildInputs = [ python-lz4 setuptools ];
- # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
- # test_dispatch_multiprocessing is broken only on Darwin.
- checkPhase = ''
- py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test
- '';
+ pytestFlagsArray = [ "joblib/test" ];
+ disabledTests = [
+ "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
+ "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";
homepage = "https://joblib.readthedocs.io/";
- license = lib.licenses.bsd3;
- maintainers = with lib.maintainers; [ costrouc ];
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ costrouc ];
};
}