Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-timeout / default.nix
blob9064b4283ba823afb44f9c0fcaf500abc49310c6
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest
5 , pytestCheckHook
6 , pexpect
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-timeout";
11   version = "2.1.0";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-wHygdATGEvirviIpSyPDaOLlEEtSHBeQGVVh834aw9k=";
17   };
19   buildInputs = [
20     pytest
21   ];
23   nativeCheckInputs = [
24     pytestCheckHook
25     pexpect
26   ];
28   disabledTests = [
29     "test_suppresses_timeout_when_pdb_is_entered"
30     # Remove until https://github.com/pytest-dev/pytest/pull/7207 or similar
31     "test_suppresses_timeout_when_debugger_is_entered"
32   ];
34   pytestFlagsArray = [
35     "-ra"
36   ];
38   pythonImportsCheck = [
39     "pytest_timeout"
40   ];
42   meta = with lib; {
43     description = "Pytest plugin to abort hanging tests";
44     homepage = "https://github.com/pytest-dev/pytest-timeout/";
45     changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
46     license = licenses.mit;
47     maintainers = with maintainers; [ makefu ];
48   };