1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytest, 7 pytestCheckHook, 8 pexpect, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-timeout"; 13 version = "2.4.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pytest-dev"; 18 repo = "pytest-timeout"; 19 tag = version; 20 hash = "sha256-NGTy3Hua6yEMWXQDJQO2Z5DD3clXTZXEH6DNQBMSGtQ="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 buildInputs = [ pytest ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 pexpect 30 ]; 31 32 pythonImportsCheck = [ "pytest_timeout" ]; 33 34 meta = with lib; { 35 description = "Pytest plugin to abort hanging tests"; 36 homepage = "https://github.com/pytest-dev/pytest-timeout/"; 37 changelog = "https://github.com/pytest-dev/pytest-timeout/tree/${src.tag}#changelog"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ makefu ]; 40 }; 41}