1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "func-timeout";
9 version = "4.3.5";
10
11 src = fetchPypi {
12 pname = "func_timeout";
13 inherit version;
14 sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
15 };
16
17 checkInputs = [
18 pytestCheckHook
19 ];
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 = with maintainers; [ SuperSandro2000 ];
28 };
29}