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";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "10.1";
|
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;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "7617c06de13ee6dd2df9add7e275bfb2bcebbaaf3e450f5937cd0200df824273";
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "pytest plugin to re-run tests to eliminate flaky failures";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|