depot/third_party/nixpkgs/pkgs/development/python-modules/threadpoolctl/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

53 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, flit
, pytestCheckHook
, numpy
, scipy
}:
buildPythonPackage rec {
pname = "threadpoolctl";
version = "3.1.0";
disabled = pythonOlder "3.6";
format = "flit";
src = fetchFromGitHub {
owner = "joblib";
repo = pname;
rev = version;
sha256 = "sha256-/qt7cgFbvpc1BLZC7a4S0RToqSggKXAqF1Xr6xOqzw8=";
};
checkInputs = [
pytestCheckHook
numpy
scipy
];
disabledTests = [
# accepts a limited set of cpu models based on project
# developers' hardware
"test_architecture"
# https://github.com/joblib/threadpoolctl/issues/128
"test_threadpool_limits_by_prefix"
"test_controller_info_actualized"
"test_command_line_command_flag"
"test_command_line_import_flag"
];
pythonImportsCheck = [
"threadpoolctl"
];
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 ];
};
}