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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.2.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-OwuV2r88tQusnvXKkS+gz8KGUmrxevyAaCTfIML3LJA=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pexpect
|
|
|
|
];
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ makefu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|