1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
2
3buildPythonPackage rec {
4 pname = "pytest-rerunfailures";
5 version = "4.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "be6bf93ed618c8899aeb6721c24f8009c769879a3b4931e05650f3c173ec17c5";
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}