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