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