blob: fb2c6094b37cc9b132ba3a7ae395f8b712648101 (
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
|
{ 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 ];
};
}
|