nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2017-12-05 12:31:43 +00:00
, fetchPypi
, pytest
, pytestCheckHook
, pexpect
, pytest-cov
2017-12-05 12:31:43 +00:00
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "2.1.0";
format = "setuptools";
2017-12-05 12:31:43 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wHygdATGEvirviIpSyPDaOLlEEtSHBeQGVVh834aw9k=";
2017-12-05 12:31:43 +00:00
};
buildInputs = [
pytest
];
checkInputs = [
pytestCheckHook
pexpect
pytest-cov
];
2019-02-14 12:42:56 +00:00
disabledTests = [
"test_suppresses_timeout_when_pdb_is_entered"
2021-02-26 04:53:43 +00:00
# Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
"test_suppresses_timeout_when_debugger_is_entered"
];
pytestFlagsArray = [
"-ra"
];
2017-12-05 12:31:43 +00:00
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";
2017-12-05 12:31:43 +00:00
license = licenses.mit;
maintainers = with maintainers; [ makefu costrouc ];
2017-12-05 12:31:43 +00:00
};
}