blob: 459625915ba40a877f7ab070fe2e57b7e4e68812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
numpy,
scipy,
}:
buildPythonPackage rec {
pname = "threadpoolctl";
version = "3.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "joblib";
repo = "threadpoolctl";
tag = version;
hash = "sha256-yICErKIHc9XKiWg9C9EH0il9zhbbkGntw6mlYDibr9g=";
};
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 = {
homepage = "https://github.com/joblib/threadpoolctl";
description = "Helpers to limit number of threads used in native libraries";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|