2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
2018-01-09 18:08:02 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2020-10-03 10:43:12 +00:00
|
|
|
version = "9.1.1";
|
2018-01-09 18:08:02 +01:00
|
|
|
|
2020-06-05 00:24:15 +02:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-01-09 18:08:02 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-03 10:43:12 +00:00
|
|
|
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
|
2018-01-09 18:08:02 +01:00
|
|
|
};
|
|
|
|
|
2021-03-12 23:20:19 +01:00
|
|
|
buildInputs = [ pytest ];
|
2018-01-09 18:08:02 +01:00
|
|
|
|
2021-03-12 23:20:19 +01:00
|
|
|
checkInputs = [ mock pytest ];
|
2018-09-13 17:45:49 +02:00
|
|
|
|
2018-01-09 18:08:02 +01:00
|
|
|
checkPhase = ''
|
2019-01-06 11:51:29 -05:00
|
|
|
py.test test_pytest_rerunfailures.py
|
2018-01-09 18:08:02 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-06 11:51:29 -05:00
|
|
|
description = "pytest plugin to re-run tests to eliminate flaky failures";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
|
2018-01-09 18:08:02 +01:00
|
|
|
license = licenses.mpl20;
|
2020-06-05 00:25:54 +02:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
2018-01-09 18:08:02 +01:00
|
|
|
};
|
|
|
|
}
|