2020-09-10 03:50:24 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-12-05 12:31:43 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2020-09-10 03:50:24 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pexpect
|
|
|
|
, pytestcov
|
2017-12-05 12:31:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2020-09-10 03:50:24 +01:00
|
|
|
version = "1.4.2";
|
2017-12-05 12:31:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-10 03:50:24 +01:00
|
|
|
sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
|
2017-12-05 12:31:43 +00:00
|
|
|
};
|
2018-08-08 20:23:27 +01:00
|
|
|
|
2020-09-10 03:50:24 +01:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pexpect pytestcov ];
|
2019-02-14 12:42:56 +00:00
|
|
|
|
2020-09-10 03:50:24 +01:00
|
|
|
disabledTests = [
|
|
|
|
"test_suppresses_timeout_when_pdb_is_entered"
|
2021-02-26 04:53:43 +00:00
|
|
|
# Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
|
|
|
|
"test_suppresses_timeout_when_debugger_is_entered"
|
2020-09-10 03:50:24 +01:00
|
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-ra"
|
|
|
|
];
|
2017-12-05 12:31:43 +00:00
|
|
|
|
2020-09-10 03:50:24 +01:00
|
|
|
meta = with lib; {
|
2017-12-05 12:31:43 +00:00
|
|
|
description = "py.test plugin to abort hanging tests";
|
2020-09-10 03:50:24 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
|
|
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
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
|
|
|
};
|
|
|
|
}
|