2020-03-04 16:59:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flit
|
2020-09-12 16:38:56 +01:00
|
|
|
, pytestCheckHook
|
2020-03-04 16:59:20 +00:00
|
|
|
, pytestcov
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "threadpoolctl";
|
2020-09-12 16:38:56 +01:00
|
|
|
version = "2.1.0";
|
2020-03-04 16:59:20 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joblib";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-12 16:38:56 +01:00
|
|
|
sha256 = "0sl6mp3b2gb0dvqkhnkmrp2g3r5c7clyyyxzq44xih6sw1pgx9df";
|
2020-03-04 16:59:20 +00:00
|
|
|
};
|
|
|
|
|
2020-09-12 16:38:56 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytestcov numpy scipy ];
|
2020-03-04 16:59:20 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|