python3Packages.pytest-retry: init at 1.7.0 (#397198)

authored by

Kira Bruneau and committed by
GitHub
64a7b297 5099db4d

+50 -1
+8 -1
pkgs/development/python-modules/debugpy/default.nix
··· 11 11 pytestCheckHook, 12 12 pytest-xdist, 13 13 pytest-timeout, 14 + pytest-retry, 14 15 importlib-metadata, 15 16 psutil, 16 17 untangle, ··· 99 100 pytestCheckHook 100 101 pytest-xdist 101 102 pytest-timeout 103 + pytest-retry 102 104 103 105 ## Used by test helpers: 104 106 importlib-metadata ··· 129 131 ''; 130 132 131 133 # Override default arguments in pytest.ini 132 - pytestFlagsArray = [ "--timeout=0" ]; 134 + pytestFlags = [ "--timeout=0" ]; 135 + 136 + disabledTests = [ 137 + # hanging test (flaky) 138 + "test_systemexit" 139 + ]; 133 140 134 141 # Fixes hanging tests on Darwin 135 142 __darwinAllowLocalNetworking = true;
+40
pkgs/development/python-modules/pytest-retry/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + pytest, 6 + pytestCheckHook, 7 + setuptools, 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "pytest-retry"; 12 + version = "1.7.0"; 13 + pyproject = true; 14 + 15 + src = fetchFromGitHub { 16 + owner = "str0zzapreti"; 17 + repo = "pytest-retry"; 18 + tag = version; 19 + hash = "sha256-Gf+L7zvC1FGAm0Wd6E6fV3KynassoGyHSD0CPgEJ02k="; 20 + }; 21 + 22 + build-system = [ setuptools ]; 23 + 24 + dependencies = [ pytest ]; 25 + 26 + nativeCheckInputs = [ pytestCheckHook ]; 27 + 28 + pythonImportsCheck = [ "pytest_retry" ]; 29 + 30 + meta = { 31 + description = "Plugin for retrying flaky tests in CI environments"; 32 + longDescription = '' 33 + This plugin adds a decorator to mark tests as flaky: `@pytest.mark.flaky(retries=3, delay=1)`. 34 + ''; 35 + homepage = "https://github.com/str0zzapreti/pytest-retry"; 36 + changelog = "https://github.com/str0zzapreti/pytest-retry/releases/tag/${src.tag}"; 37 + license = lib.licenses.mit; 38 + maintainers = with lib.maintainers; [ fliegendewurst ]; 39 + }; 40 + }
+2
pkgs/top-level/python-packages.nix
··· 13660 13660 13661 13661 pytest-responses = callPackage ../development/python-modules/pytest-responses { }; 13662 13662 13663 + pytest-retry = callPackage ../development/python-modules/pytest-retry { }; 13664 + 13663 13665 pytest-reverse = callPackage ../development/python-modules/pytest-reverse { }; 13664 13666 13665 13667 pytest-ruff = callPackage ../development/python-modules/pytest-ruff { };