nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, pythonAtLeast
3, pythonOlder
4, buildPythonPackage
5, fetchPypi
6, stdenv
7, numpydoc
8, pytestCheckHook
9, lz4
10, setuptools
11, sphinx
12}:
13
14
15buildPythonPackage rec {
16 pname = "joblib";
17 version = "1.1.0";
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "4158fcecd13733f8be669be0683b96ebdbbd38d23559f54dca7205aea1bf1e35";
23 };
24
25 checkInputs = [ sphinx numpydoc pytestCheckHook ];
26 propagatedBuildInputs = [ lz4 setuptools ];
27
28 pytestFlagsArray = [ "joblib/test" ];
29 disabledTests = [
30 "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
31 "test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests
32 "test_nested_parallel_warnings" # tests is flaky under load
33 ] ++ lib.optionals stdenv.isDarwin [
34 "test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
35 ];
36
37 meta = with lib; {
38 description = "Lightweight pipelining: using Python functions as pipeline jobs";
39 homepage = "https://joblib.readthedocs.io/";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ costrouc ];
42 };
43}