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