1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "func-timeout";
10 version = "4.3.5";
11 format = "setuptools";
12
13 src = fetchPypi {
14 pname = "func_timeout";
15 inherit version;
16 sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
17 };
18
19 nativeCheckInputs = [ pytestCheckHook ];
20
21 pythonImportsCheck = [ "func_timeout" ];
22
23 meta = with lib; {
24 description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads";
25 homepage = "https://github.com/kata198/func_timeout";
26 license = licenses.lgpl3Only;
27 maintainers = [ ];
28 };
29}