2017-12-05 12:31:43 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-08-08 20:23:27 +01:00
|
|
|
, fetchpatch
|
2017-12-05 12:31:43 +00:00
|
|
|
, lib
|
|
|
|
, pexpect
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2018-08-30 16:42:55 +01:00
|
|
|
version = "1.3.2";
|
2017-12-05 12:31:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-30 16:42:55 +01:00
|
|
|
sha256 = "1117fc0536e1638862917efbdc0895e6b62fa61e6cf4f39bb655686af7af9627";
|
2017-12-05 12:31:43 +00:00
|
|
|
};
|
2018-08-08 20:23:27 +01:00
|
|
|
|
2017-12-05 12:31:43 +00:00
|
|
|
checkInputs = [ pytest pexpect ];
|
|
|
|
checkPhase = ''pytest -ra'';
|
|
|
|
|
|
|
|
meta = with lib;{
|
|
|
|
description = "py.test plugin to abort hanging tests";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://bitbucket.org/pytest-dev/pytest-timeout/;
|
2017-12-05 12:31:43 +00:00
|
|
|
license = licenses.mit;
|
2018-08-08 20:23:27 +01:00
|
|
|
maintainers = with maintainers; [ makefu costrouc ];
|
2017-12-05 12:31:43 +00:00
|
|
|
};
|
|
|
|
}
|