1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 setuptools,
7 packaging,
8 pytest,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-rerunfailures";
14 version = "13.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-4TLb5CC8R29US5bnA27dCmlwdXQgm2Z3JjyVDRmwkZk=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 buildInputs = [ pytest ];
27 propagatedBuildInputs = [ packaging ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 meta = with lib; {
32 description = "Pytest plugin to re-run tests to eliminate flaky failures";
33 homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
34 license = licenses.mpl20;
35 maintainers = with maintainers; [ das-g ];
36 };
37}