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