e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
49 lines
996 B
Nix
49 lines
996 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, pytestCheckHook
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-timeout";
|
|
version = "2.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-OwuV2r88tQusnvXKkS+gz8KGUmrxevyAaCTfIML3LJA=";
|
|
};
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pexpect
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_suppresses_timeout_when_pdb_is_entered"
|
|
# Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
|
|
"test_suppresses_timeout_when_debugger_is_entered"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"-ra"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_timeout"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pytest plugin to abort hanging tests";
|
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ makefu ];
|
|
};
|
|
}
|