2017-09-13 08:34:39 +01:00
|
|
|
{ lib
|
2020-09-15 14:10:54 +01:00
|
|
|
, pythonOlder
|
2017-09-13 08:34:39 +01:00
|
|
|
, buildPythonPackage
|
2019-03-24 08:32:50 +00:00
|
|
|
, fetchPypi
|
2019-07-24 18:50:00 +01:00
|
|
|
, stdenv
|
2017-09-13 08:34:39 +01:00
|
|
|
, numpydoc
|
2020-11-30 20:53:05 +00:00
|
|
|
, pytestCheckHook
|
2018-08-08 20:30:26 +01:00
|
|
|
, python-lz4
|
2019-09-29 02:47:48 +01:00
|
|
|
, setuptools
|
|
|
|
, sphinx
|
2017-09-13 08:34:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
2020-11-29 14:04:32 +00:00
|
|
|
version = "0.17.0";
|
2020-09-15 14:10:54 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-08-08 20:30:26 +01:00
|
|
|
|
2019-03-24 08:32:50 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:32 +00:00
|
|
|
sha256 = "9e284edd6be6b71883a63c9b7f124738a3c16195513ad940eae7e3438de885d5";
|
2017-09-13 08:34:39 +01:00
|
|
|
};
|
|
|
|
|
2020-11-30 20:53:05 +00:00
|
|
|
checkInputs = [ sphinx numpydoc pytestCheckHook ];
|
2019-09-29 02:47:48 +01:00
|
|
|
propagatedBuildInputs = [ python-lz4 setuptools ];
|
2017-09-13 08:34:39 +01:00
|
|
|
|
2020-11-30 20:53:05 +00:00
|
|
|
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.
|
|
|
|
];
|
2017-09-13 08:34:39 +01:00
|
|
|
|
2020-11-30 20:53:05 +00:00
|
|
|
meta = with lib; {
|
2017-09-13 08:34:39 +01:00
|
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://joblib.readthedocs.io/";
|
2020-11-30 20:53:05 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2017-09-13 08:34:39 +01:00
|
|
|
};
|
2017-11-02 08:19:58 +00:00
|
|
|
}
|