1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, pytestCheckHook
6, pexpect
7, pytest-cov
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-timeout";
12 version = "1.4.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
17 };
18
19 buildInputs = [ pytest ];
20
21 checkInputs = [ pytestCheckHook pexpect pytest-cov ];
22
23 disabledTests = [
24 "test_suppresses_timeout_when_pdb_is_entered"
25 # Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
26 "test_suppresses_timeout_when_debugger_is_entered"
27 ];
28 pytestFlagsArray = [
29 "-ra"
30 ];
31
32 meta = with lib; {
33 description = "py.test plugin to abort hanging tests";
34 homepage = "https://github.com/pytest-dev/pytest-timeout/";
35 changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
36 license = licenses.mit;
37 maintainers = with maintainers; [ makefu costrouc ];
38 };
39}