d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
36 lines
771 B
Nix
36 lines
771 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, setuptools
|
|
, packaging
|
|
, pytest
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-rerunfailures";
|
|
version = "12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eE9GL6h/6b33gdACfYVrR6S/5sEq8Qj2vYhwV6kXtI4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
buildInputs = [ pytest ];
|
|
propagatedBuildInputs = [ packaging ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Pytest plugin to re-run tests to eliminate flaky failures";
|
|
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ das-g ];
|
|
};
|
|
}
|