1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }: 2 3buildPythonPackage rec { 4 pname = "pytest-rerunfailures"; 5 version = "4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "18lpy6d9b4ck8j3jwh4vmxj54is0fwanpmpg70qg4y0fycdqzwks"; 10 }; 11 12 checkInputs = [ pytest mock ]; 13 14 checkPhase = '' 15 py.test 16 ''; 17 18 meta = with stdenv.lib; { 19 description = "pytest plugin to re-run tests to eliminate flaky failures."; 20 homepage = https://github.com/pytest-dev/pytest-rerunfailures; 21 license = licenses.mpl20; 22 maintainers = with maintainers; [ jgeerds ]; 23 }; 24}