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

38 lines
877 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
pytest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "16.3";
pyproject = true;
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-rerunfailures";
tag = version;
hash = "sha256-T4l4AoUHvT6GjHyRK2TA3vPTxRicZ5pvgFgDtbkOGMw=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [ packaging ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Pytest plugin to re-run tests to eliminate flaky failures";
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
changelog = "https://github.com/pytest-dev/pytest-rerunfailures/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ das-g ];
};
}