11 buildPythonPackage rec {
12 pname = "threadpoolctl";
15 disabled = pythonOlder "3.6";
18 src = fetchFromGitHub {
22 hash = "sha256-/qt7cgFbvpc1BLZC7a4S0RToqSggKXAqF1Xr6xOqzw8=";
36 # accepts a limited set of cpu models based on project
37 # developers' hardware
39 # https://github.com/joblib/threadpoolctl/issues/128
40 "test_command_line_command_flag"
41 "test_command_line_import_flag"
42 "test_controller_info_actualized"
43 "test_set_threadpool_limits_by_api"
44 "test_set_threadpool_limits_no_limit"
45 "test_threadpool_limits_by_prefix"
46 "test_threadpool_limits_function_with_side_effect"
47 "test_threadpool_limits_manual_restore"
50 pythonImportsCheck = [
55 homepage = "https://github.com/joblib/threadpoolctl";
56 description = "Helpers to limit number of threads used in native libraries";
57 license = licenses.bsd3;
58 maintainers = with maintainers; [ bcdarwin ];