2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "10.3";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-2CRNeZ+Jpu215XMB3a6ztvENZpFjjVHoCzcTEVkuKMY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
checkInputs = [ mock pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test_pytest_rerunfailures.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-11 16:52:03 +00:00
|
|
|
description = "Pytest plugin to re-run tests to eliminate flaky failures";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
|
|
|
|
license = licenses.mpl20;
|
2020-06-15 15:56:04 +00:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|