21cecf6002
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
35 lines
695 B
Nix
35 lines
695 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchFromGitHub
|
|
, flit
|
|
, pytestCheckHook
|
|
, pytest-cov
|
|
, numpy
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "threadpoolctl";
|
|
version = "2.1.0";
|
|
|
|
disabled = isPy27;
|
|
format = "flit";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joblib";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0sl6mp3b2gb0dvqkhnkmrp2g3r5c7clyyyxzq44xih6sw1pgx9df";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook pytest-cov numpy scipy ];
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|