1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, pytestCheckHook 6, pexpect 7, pytest-cov 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-timeout"; 12 version = "2.1.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-wHygdATGEvirviIpSyPDaOLlEEtSHBeQGVVh834aw9k="; 18 }; 19 20 buildInputs = [ 21 pytest 22 ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 pexpect 27 pytest-cov 28 ]; 29 30 disabledTests = [ 31 "test_suppresses_timeout_when_pdb_is_entered" 32 # Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar 33 "test_suppresses_timeout_when_debugger_is_entered" 34 ]; 35 36 pytestFlagsArray = [ 37 "-ra" 38 ]; 39 40 pythonImportsCheck = [ 41 "pytest_timeout" 42 ]; 43 44 meta = with lib; { 45 description = "Pytest plugin to abort hanging tests"; 46 homepage = "https://github.com/pytest-dev/pytest-timeout/"; 47 changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ makefu costrouc ]; 50 }; 51}