1{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
2
3buildPythonPackage rec {
4 pname = "pytest-rerunfailures";
5 version = "10.2";
6
7 disabled = pythonOlder "3.5";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "9e1e1bad51e07642c5bbab809fc1d4ec8eebcb7de86f90f1a26e6ef9de446697";
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}