1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 packaging, 8 pytest, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-rerunfailures"; 14 version = "15.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "pytest-dev"; 21 repo = "pytest-rerunfailures"; 22 tag = version; 23 hash = "sha256-ab3n61zCf9ok2PWvKTwmaeoeGuMxl0sYE25djk/NDLk="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 buildInputs = [ pytest ]; 29 30 dependencies = [ packaging ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 meta = with lib; { 35 description = "Pytest plugin to re-run tests to eliminate flaky failures"; 36 homepage = "https://github.com/pytest-dev/pytest-rerunfailures"; 37 license = licenses.mpl20; 38 maintainers = with maintainers; [ das-g ]; 39 }; 40}