2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, stdenv
|
|
|
|
, numpydoc
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2021-08-05 21:33:18 +00:00
|
|
|
, lz4
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.1.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "4158fcecd13733f8be669be0683b96ebdbbd38d23559f54dca7205aea1bf1e35";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [ sphinx numpydoc pytestCheckHook ];
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [ lz4 setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +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.
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
|
|
|
homepage = "https://joblib.readthedocs.io/";
|
2020-12-07 07:45:13 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|