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