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