2017-09-13 07:34:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-03-24 08:32:50 +00:00
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
2017-09-13 07:34:39 +00:00
|
|
|
, sphinx
|
|
|
|
, numpydoc
|
2017-11-02 08:19:58 +00:00
|
|
|
, pytest
|
2018-08-08 19:30:26 +00:00
|
|
|
, python-lz4
|
2017-09-13 07:34:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
2019-03-24 08:32:50 +00:00
|
|
|
version = "0.13.2";
|
2018-08-08 19:30:26 +00:00
|
|
|
|
2019-03-24 08:32:50 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "315d6b19643ec4afd4c41c671f9f2d65ea9d787da093487a81ead7b0bac94524";
|
2017-09-13 07:34:39 +00:00
|
|
|
};
|
|
|
|
|
2019-03-24 08:32:50 +00:00
|
|
|
# python-lz4 compatibility
|
|
|
|
# https://github.com/joblib/joblib/pull/847
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/joblib/joblib/commit/d3235fd601f40c91e074d48a411d7380329fe155.patch;
|
|
|
|
sha256 = "1hg1vfbba7mfilrpvmd97s68v03vs4bhlp1c1dj9lizi51mj2q2h";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/joblib/joblib/commit/884c92cd2aa5c2c1975ab48786da75556d779833.patch;
|
|
|
|
sha256 = "11kvpkvi428dq13ayy7vfyrib8isvcrdw8cd5hxkp5axr7sl12ba";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/joblib/joblib/commit/f1e177d781cc0d64420ec964a0b17d8268cb42a0.patch;
|
|
|
|
sha256 = "1sq6wcw4bhaq8cqwcd43fdws3467qy342xx3pgv62hp2nn75a21d";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-11-02 08:19:58 +00:00
|
|
|
checkInputs = [ sphinx numpydoc pytest ];
|
2018-08-08 19:30:26 +00:00
|
|
|
propagatedBuildInputs = [ python-lz4 ];
|
2017-09-13 07:34:39 +00:00
|
|
|
|
2017-11-02 08:19:58 +00:00
|
|
|
checkPhase = ''
|
2018-08-08 19:30:26 +00:00
|
|
|
py.test joblib
|
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
|
|
|
}
|