2017-09-13 07:34:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, sphinx
|
|
|
|
, numpydoc
|
|
|
|
, isPy3k
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
|
|
|
name = "${pname}-${version}";
|
2017-10-25 18:04:35 +00:00
|
|
|
version = "0.11";
|
2017-09-13 07:34:39 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 18:04:35 +00:00
|
|
|
sha256 = "7b8fd56df36d9731a83729395ccb85a3b401f62a96255deb1a77220c00ed4085";
|
2017-09-13 07:34:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose sphinx numpydoc ];
|
|
|
|
|
|
|
|
# Failing test on Python 3.x and Darwin
|
|
|
|
postPatch = '''' + lib.optionalString (isPy3k || stdenv.isDarwin) ''
|
|
|
|
sed -i -e '70,84d' joblib/test/test_format_stack.py
|
|
|
|
# test_nested_parallel_warnings: ValueError: Non-zero return code: -9.
|
|
|
|
# Not sure why but it's nix-specific. Try removing for new joblib releases.
|
|
|
|
rm joblib/test/test_parallel.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
|
|
|
homepage = http://pythonhosted.org/joblib/;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|