Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 28 lines 698 B view raw
1{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }: 2 3buildPythonPackage rec { 4 pname = "pytest-rerunfailures"; 5 version = "9.1.1"; 6 7 disabled = pythonOlder "3.5"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2"; 12 }; 13 14 buildInputs = [ pytest ]; 15 16 checkInputs = [ mock pytest ]; 17 18 checkPhase = '' 19 py.test test_pytest_rerunfailures.py 20 ''; 21 22 meta = with 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}