Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchPypi 3, fetchpatch 4, lib 5, pexpect 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-timeout"; 11 version = "1.3.3"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1cczcjhw4xx5sjkhxlhc5c1bkr7x6fcyx12wrnvwfckshdvblc2a"; 16 }; 17 18 patches = fetchpatch { 19 url = "https://bitbucket.org/pytest-dev/pytest-timeout/commits/36998c891573d8ec1db1acd4f9438cb3cf2aee2e/raw"; 20 sha256 = "05zc2w7mjgv8rm8i1cbxp7k09vlscmay5iy78jlzgjqkrx3wkf46"; 21 }; 22 23 checkInputs = [ pytest pexpect ]; 24 checkPhase = '' 25 # test_suppresses_timeout_when_pdb_is_entered fails under heavy load 26 pytest -ra -k 'not test_suppresses_timeout_when_pdb_is_entered' 27 ''; 28 29 meta = with lib;{ 30 description = "py.test plugin to abort hanging tests"; 31 homepage = "https://bitbucket.org/pytest-dev/pytest-timeout/"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ makefu costrouc ]; 34 }; 35}