depot/third_party/nixpkgs/pkgs/development/python-modules/threadpoolctl/default.nix
Default email 4a3aa3d7d8 Project import generated by Copybara.
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
2020-10-11 14:50:04 +02:00

35 lines
693 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, flit
, pytestCheckHook
, pytestcov
, 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 pytestcov 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 ];
};
}