2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, packaging
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "12.0";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "pyproject";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-eE9GL6h/6b33gdACfYVrR6S/5sEq8Qj2vYhwV6kXtI4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ packaging ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|