2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "func-timeout";
|
|
|
|
version = "4.3.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "func_timeout";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "func_timeout" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 = licenses.lgpl3Only;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|