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