lol

python3Packages.threadpoolctl: init at 2.0.0

authored by

Ben Darwin and committed by
Frederik Rietdijk
45d01095 3a2c21dc

+40
+38
pkgs/development/python-modules/threadpoolctl/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , isPy27 4 + , fetchFromGitHub 5 + , flit 6 + , pytest 7 + , pytestcov 8 + , numpy 9 + , scipy 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "threadpoolctl"; 14 + version = "2.0.0"; 15 + 16 + disabled = isPy27; 17 + format = "flit"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "joblib"; 21 + repo = pname; 22 + rev = version; 23 + sha256 = "16z4n82f004i4l1jw6qrzazda1m6v2yjnpqlp71ipa8mzy9kw7dw"; 24 + }; 25 + 26 + checkInputs = [ pytest pytestcov numpy scipy ]; 27 + 28 + checkPhase = "pytest tests -k 'not test_nested_prange_blas'"; 29 + # cython doesn't get run on the tests when added to nativeBuildInputs, breaking this test 30 + 31 + meta = with lib; { 32 + homepage = "https://github.com/joblib/threadpoolctl"; 33 + description = "Helpers to limit number of threads used in native libraries"; 34 + license = licenses.bsd3; 35 + maintainers = with maintainers; [ bcdarwin ]; 36 + }; 37 + 38 + }
+2
pkgs/top-level/python-packages.nix
··· 6729 6729 6730 6730 threadpool = callPackage ../development/python-modules/threadpool { }; 6731 6731 6732 + threadpoolctl = callPackage ../development/python-modules/threadpoolctl { }; 6733 + 6732 6734 rocket-errbot = callPackage ../development/python-modules/rocket-errbot { }; 6733 6735 6734 6736 Yapsy = callPackage ../development/python-modules/yapsy { };