blob: 8b6a09149f30639677fd7dbd36c9ea7540220647 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "func-timeout";
version = "4.3.5";
format = "setuptools";
src = fetchPypi {
pname = "func_timeout";
inherit version;
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
};
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# Calculates the amount of time the machine slept but doesn't account for heavy loads
"test_retry"
"test_funcSetTimeout"
"test_funcSetTimeCalculate"
"test_funcSetTimeCalculateWithOverride"
"test_setFuncTimeoutetry"
];
pythonImportsCheck = [ "func_timeout" ];
meta = {
description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads";
homepage = "https://github.com/kata198/func_timeout";
license = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}
|