1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, flit 6, pytestCheckHook 7, numpy 8, scipy 9}: 10 11buildPythonPackage rec { 12 pname = "threadpoolctl"; 13 version = "3.0.0"; 14 15 disabled = pythonOlder "3.6"; 16 format = "flit"; 17 18 src = fetchFromGitHub { 19 owner = "joblib"; 20 repo = pname; 21 rev = version; 22 sha256 = "02zccsiq4gvawy7q2fh3m3hvr40hl2ylmwwny6dv0lqsr2iwgnmn"; 23 }; 24 25 checkInputs = [ pytestCheckHook numpy scipy ]; 26 disabledTests = [ 27 # accepts a limited set of cpu models based on project 28 # developers' hardware 29 "test_architecture" 30 ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/joblib/threadpoolctl"; 34 description = "Helpers to limit number of threads used in native libraries"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ bcdarwin ]; 37 }; 38 39}