1{ lib
2, buildPythonPackage
3, fetchPypi
4, stdenv
5, numpydoc
6, pytest
7, python-lz4
8, setuptools
9, sphinx
10}:
11
12
13buildPythonPackage rec {
14 pname = "joblib";
15 version = "0.16.0";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "8f52bf24c64b608bf0b2563e0e47d6fcf516abc8cfafe10cfd98ad66d94f92d6";
20 };
21
22 checkInputs = [ sphinx numpydoc pytest ];
23 propagatedBuildInputs = [ python-lz4 setuptools ];
24
25 # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
26 # test_dispatch_multiprocessing is broken only on Darwin.
27 checkPhase = ''
28 py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test
29 '';
30
31 meta = {
32 description = "Lightweight pipelining: using Python functions as pipeline jobs";
33 homepage = "https://joblib.readthedocs.io/";
34 license = lib.licenses.bsd3;
35 maintainers = with lib.maintainers; [ costrouc ];
36 };
37}