Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 26 lines 650 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }: 2 3buildPythonPackage rec { 4 pname = "pytest-rerunfailures"; 5 version = "8.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "04p8rfvv7yi3gsdm1dw1mfhjwg6507rhgj7nbm5gfqw4kxmj7h8p"; 10 }; 11 12 checkInputs = [ mock pytest ]; 13 14 propagatedBuildInputs = [ pytest ]; 15 16 checkPhase = '' 17 py.test test_pytest_rerunfailures.py 18 ''; 19 20 meta = with stdenv.lib; { 21 description = "pytest plugin to re-run tests to eliminate flaky failures"; 22 homepage = https://github.com/pytest-dev/pytest-rerunfailures; 23 license = licenses.mpl20; 24 maintainers = with maintainers; [ ]; 25 }; 26}