2017-09-13 07:34:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-03-24 08:32:50 +00:00
|
|
|
, fetchPypi
|
2019-07-24 17:50:00 +00:00
|
|
|
, stdenv
|
2017-09-13 07:34:39 +00:00
|
|
|
, numpydoc
|
2017-11-02 08:19:58 +00:00
|
|
|
, pytest
|
2018-08-08 19:30:26 +00:00
|
|
|
, python-lz4
|
2019-09-29 01:47:48 +00:00
|
|
|
, setuptools
|
|
|
|
, sphinx
|
2017-09-13 07:34:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
2019-10-17 08:10:33 +00:00
|
|
|
version = "0.14.0";
|
2018-08-08 19:30:26 +00:00
|
|
|
|
2019-03-24 08:32:50 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-17 08:10:33 +00:00
|
|
|
sha256 = "1zwkl6hgi8wbygcc6ql6yk1if665hwk43sa9shglb2afrfm5gk3g";
|
2017-09-13 07:34:39 +00:00
|
|
|
};
|
|
|
|
|
2017-11-02 08:19:58 +00:00
|
|
|
checkInputs = [ sphinx numpydoc pytest ];
|
2019-09-29 01:47:48 +00:00
|
|
|
propagatedBuildInputs = [ python-lz4 setuptools ];
|
2017-09-13 07:34:39 +00:00
|
|
|
|
2019-07-24 17:50:00 +00:00
|
|
|
# test_disk_used is broken: https://github.com/joblib/joblib/issues/57
|
|
|
|
# test_dispatch_multiprocessing is broken only on Darwin.
|
2017-11-02 08:19:58 +00:00
|
|
|
checkPhase = ''
|
2019-07-24 17:50:00 +00:00
|
|
|
py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test
|
2017-09-13 07:34:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
2018-06-27 20:12:57 +00:00
|
|
|
homepage = https://pythonhosted.org/joblib/;
|
2017-09-13 07:34:39 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2018-08-08 19:30:26 +00:00
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
2017-09-13 07:34:39 +00:00
|
|
|
};
|
2017-11-02 08:19:58 +00:00
|
|
|
}
|