depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

49 lines
996 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, pexpect
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "2.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-wHygdATGEvirviIpSyPDaOLlEEtSHBeQGVVh834aw9k=";
};
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 ];
};
}