1{ buildPythonPackage 2, fetchPypi 3, lib 4, pexpect 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-timeout"; 10 version = "1.3.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1117fc0536e1638862917efbdc0895e6b62fa61e6cf4f39bb655686af7af9627"; 15 }; 16 buildInputs = [ pytest ]; 17 checkInputs = [ pytest pexpect ]; 18 checkPhase = ''pytest -ra''; 19 20 meta = with lib;{ 21 description = "py.test plugin to abort hanging tests"; 22 homepage = https://bitbucket.org/pytest-dev/pytest-timeout/; 23 license = licenses.mit; 24 maintainers = with maintainers; [ makefu ]; 25 }; 26}