1{ lib
2, buildPythonPackage
3, isPy27
4, fetchFromGitHub
5, flit
6, pytestCheckHook
7, pytestcov
8, numpy
9, scipy
10}:
11
12buildPythonPackage rec {
13 pname = "threadpoolctl";
14 version = "2.1.0";
15
16 disabled = isPy27;
17 format = "flit";
18
19 src = fetchFromGitHub {
20 owner = "joblib";
21 repo = pname;
22 rev = version;
23 sha256 = "0sl6mp3b2gb0dvqkhnkmrp2g3r5c7clyyyxzq44xih6sw1pgx9df";
24 };
25
26 checkInputs = [ pytestCheckHook pytestcov numpy scipy ];
27
28 meta = with lib; {
29 homepage = "https://github.com/joblib/threadpoolctl";
30 description = "Helpers to limit number of threads used in native libraries";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ bcdarwin ];
33 };
34
35}