python3Packages.threadpoolctl: init at 2.0.0
This commit is contained in:
parent
3a2c21dc95
commit
45d0109512
2 changed files with 40 additions and 0 deletions
38
pkgs/development/python-modules/threadpoolctl/default.nix
Normal file
38
pkgs/development/python-modules/threadpoolctl/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchFromGitHub
|
||||
, flit
|
||||
, pytest
|
||||
, pytestcov
|
||||
, numpy
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "threadpoolctl";
|
||||
version = "2.0.0";
|
||||
|
||||
disabled = isPy27;
|
||||
format = "flit";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joblib";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16z4n82f004i4l1jw6qrzazda1m6v2yjnpqlp71ipa8mzy9kw7dw";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestcov numpy scipy ];
|
||||
|
||||
checkPhase = "pytest tests -k 'not test_nested_prange_blas'";
|
||||
# cython doesn't get run on the tests when added to nativeBuildInputs, breaking this test
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/joblib/threadpoolctl";
|
||||
description = "Helpers to limit number of threads used in native libraries";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
|
||||
}
|
|
@ -6729,6 +6729,8 @@ in {
|
|||
|
||||
threadpool = callPackage ../development/python-modules/threadpool { };
|
||||
|
||||
threadpoolctl = callPackage ../development/python-modules/threadpoolctl { };
|
||||
|
||||
rocket-errbot = callPackage ../development/python-modules/rocket-errbot { };
|
||||
|
||||
Yapsy = callPackage ../development/python-modules/yapsy { };
|
||||
|
|
Loading…
Reference in a new issue