2020-11-12 09:05:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2020-11-12 09:05:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pexpect
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.0.2";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "e6f98b54dafde8d70e4088467ff621260b641eb64895c4195b6e5c8f45638112";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pexpect
|
|
|
|
pytest-cov
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_suppresses_timeout_when_pdb_is_entered"
|
2021-03-09 03:18:52 +00:00
|
|
|
# Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
|
|
|
|
"test_suppresses_timeout_when_debugger_is_entered"
|
2020-11-12 09:05:59 +00:00
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-ra"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_timeout"
|
|
|
|
];
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Pytest plugin to abort hanging tests";
|
2020-11-12 09:05:59 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
|
|
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu costrouc ];
|
|
|
|
};
|
|
|
|
}
|