1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, setuptools 6, packaging 7, pytest 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-rerunfailures"; 13 version = "12.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-eE9GL6h/6b33gdACfYVrR6S/5sEq8Qj2vYhwV6kXtI4="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 buildInputs = [ pytest ]; 26 propagatedBuildInputs = [ packaging ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "Pytest plugin to re-run tests to eliminate flaky failures"; 32 homepage = "https://github.com/pytest-dev/pytest-rerunfailures"; 33 license = licenses.mpl20; 34 maintainers = with maintainers; [ das-g ]; 35 }; 36}