mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
numpy,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "threadpoolctl";
|
|
version = "3.5.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joblib";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-XFgiCfcHwzjsjPDKask1X4JHTx1xeHfIFeSJWtbgJmU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
nativeCheckInputs = [
|
|
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_command_line_command_flag"
|
|
"test_command_line_import_flag"
|
|
"test_controller_info_actualized"
|
|
"test_set_threadpool_limits_by_api"
|
|
"test_set_threadpool_limits_no_limit"
|
|
"test_threadpool_limits_by_prefix"
|
|
"test_threadpool_limits_function_with_side_effect"
|
|
"test_threadpool_limits_manual_restore"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|