depot/third_party/nixpkgs/pkgs/development/python-modules/threadpoolctl/default.nix
Default email 48d4c8cc3c Project import generated by Copybara.
GitOrigin-RevId: 6ef4f522d63f22b40004319778761040d3197390
2021-08-08 17:34:03 -06:00

34 lines
663 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, flit
, pytestCheckHook
, numpy
, scipy
}:
buildPythonPackage rec {
pname = "threadpoolctl";
version = "2.2.0";
disabled = isPy27;
format = "flit";
src = fetchFromGitHub {
owner = "joblib";
repo = pname;
rev = version;
sha256 = "7UUjbX1IpXtUAgN48Db43Zr1u360UETSUnIHD6rQRLs=";
};
checkInputs = [ pytestCheckHook 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 ];
};
}