Commit 6322dd1c authored by FliegendeWurst's avatar FliegendeWurst
Browse files

python3Packages.pytest-retry: init at 1.7.0

parent 20b2600f
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytest,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pytest-retry";
  version = "1.7.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "str0zzapreti";
    repo = "pytest-retry";
    tag = version;
    hash = "sha256-Gf+L7zvC1FGAm0Wd6E6fV3KynassoGyHSD0CPgEJ02k=";
  };

  build-system = [ setuptools ];

  dependencies = [ pytest ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pytest_retry" ];

  meta = {
    description = "Plugin for retrying flaky tests in CI environments";
    longDescription = ''
      This plugin adds a decorator to mark tests as flaky: `@pytest.mark.flaky(retries=3, delay=1)`.
    '';
    homepage = "https://github.com/str0zzapreti/pytest-retry";
    changelog = "https://github.com/str0zzapreti/pytest-retry/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fliegendewurst ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -13649,6 +13649,8 @@ self: super: with self; {
  pytest-responses = callPackage ../development/python-modules/pytest-responses { };
  pytest-retry = callPackage ../development/python-modules/pytest-retry { };
  pytest-reverse = callPackage ../development/python-modules/pytest-reverse { };
  pytest-ruff = callPackage ../development/python-modules/pytest-ruff { };