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 = ''pytest -ra''; 25 26 meta = with lib;{ 27 description = "py.test plugin to abort hanging tests"; 28 homepage = https://bitbucket.org/pytest-dev/pytest-timeout/; 29 license = licenses.mit; 30 maintainers = with maintainers; [ makefu costrouc ]; 31 }; 32}