2020-09-09 22:50:24 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-12-05 13:31:43 +01:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2020-09-09 22:50:24 -04:00
|
|
|
, pytestCheckHook
|
|
|
|
, pexpect
|
2021-07-20 22:42:24 +02:00
|
|
|
, pytest-cov
|
2017-12-05 13:31:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2022-01-13 16:58:49 -08:00
|
|
|
version = "2.0.2";
|
2021-12-08 08:37:44 +01:00
|
|
|
format = "setuptools";
|
2017-12-05 13:31:43 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 16:58:49 -08:00
|
|
|
sha256 = "e6f98b54dafde8d70e4088467ff621260b641eb64895c4195b6e5c8f45638112";
|
2017-12-05 13:31:43 +01:00
|
|
|
};
|
2018-08-08 15:23:27 -04:00
|
|
|
|
2021-12-08 08:37:44 +01:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2020-09-09 22:50:24 -04:00
|
|
|
|
2021-12-08 08:37:44 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pexpect
|
|
|
|
pytest-cov
|
|
|
|
];
|
2019-02-14 13:42:56 +01:00
|
|
|
|
2020-09-09 22:50:24 -04:00
|
|
|
disabledTests = [
|
|
|
|
"test_suppresses_timeout_when_pdb_is_entered"
|
2021-02-25 23:53:43 -05:00
|
|
|
# Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
|
|
|
|
"test_suppresses_timeout_when_debugger_is_entered"
|
2020-09-09 22:50:24 -04:00
|
|
|
];
|
2021-12-08 08:37:44 +01:00
|
|
|
|
2020-09-09 22:50:24 -04:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-ra"
|
|
|
|
];
|
2017-12-05 13:31:43 +01:00
|
|
|
|
2021-12-08 08:37:44 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_timeout"
|
|
|
|
];
|
|
|
|
|
2020-09-09 22:50:24 -04:00
|
|
|
meta = with lib; {
|
2021-12-08 08:37:44 +01:00
|
|
|
description = "Pytest plugin to abort hanging tests";
|
2020-09-09 22:50:24 -04:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
|
|
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
2017-12-05 13:31:43 +01:00
|
|
|
license = licenses.mit;
|
2018-08-08 15:23:27 -04:00
|
|
|
maintainers = with maintainers; [ makefu costrouc ];
|
2017-12-05 13:31:43 +01:00
|
|
|
};
|
|
|
|
}
|