Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839{ lib, buildPythonPackage, fetchPypi, pytestCheckHook,}:
buildPythonPackage rec { pname = "func-timeout"; version = "4.3.5"; format = "setuptools";
src = fetchPypi { pname = "func_timeout"; inherit version; hash = "sha256-dM08Qo7JT07fuoH5svFJBIRtX/zMJ8kkM7i1k5tVdd0="; };
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 = [ ]; };}