at 25.11-pre 1.8 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 pythonAtLeast, 7 stdenv, 8 9 # build-system 10 setuptools, 11 12 # propagates (optional, but unspecified) 13 # https://github.com/joblib/joblib#dependencies 14 lz4, 15 psutil, 16 17 # tests 18 pytestCheckHook, 19 threadpoolctl, 20}: 21 22buildPythonPackage rec { 23 pname = "joblib"; 24 version = "1.4.2"; 25 format = "pyproject"; 26 27 disabled = pythonOlder "3.7"; 28 29 src = fetchPypi { 30 inherit pname version; 31 hash = "sha256-I4LFgWsmNvvSCgng9Ona1HNnZf37fcpYKUO5wTZrPw4="; 32 }; 33 34 nativeBuildInputs = [ setuptools ]; 35 36 propagatedBuildInputs = [ 37 lz4 38 psutil 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 threadpoolctl 44 ]; 45 46 pytestFlagsArray = [ "joblib/test" ]; 47 48 disabledTests = 49 [ 50 "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57 51 "test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests 52 "test_nested_parallel_warnings" # tests is flaky under load 53 "test_memory" # tests - and the module itself - assume strictatime mount for build directory 54 ] 55 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 56 "test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin. 57 ] 58 ++ lib.optionals (pythonAtLeast "3.12") [ 59 # deprecation warnings with python3.12 https://github.com/joblib/joblib/issues/1478 60 "test_main_thread_renamed_no_warning" 61 "test_background_thread_parallelism" 62 ]; 63 64 meta = with lib; { 65 changelog = "https://github.com/joblib/joblib/releases/tag/${version}"; 66 description = "Lightweight pipelining: using Python functions as pipeline jobs"; 67 homepage = "https://joblib.readthedocs.io/"; 68 license = licenses.bsd3; 69 maintainers = [ ]; 70 }; 71}