2020-06-04 23:24:15 +01:00
|
|
|
{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
2018-01-09 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2020-06-06 07:47:27 +01:00
|
|
|
version = "9.0";
|
2018-01-09 17:08:02 +00:00
|
|
|
|
2020-06-04 23:24:15 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-01-09 17:08:02 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-04 23:24:15 +01:00
|
|
|
sha256 = "1r5qnkkhkfvx1jbi1wfyxpyggwyr32w6h5z3i93a03bc92kc4nl9";
|
2018-01-09 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2019-04-02 22:41:01 +01:00
|
|
|
checkInputs = [ mock pytest ];
|
2018-01-09 17:08:02 +00:00
|
|
|
|
2018-09-13 16:45:49 +01:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
2018-01-09 17:08:02 +00:00
|
|
|
checkPhase = ''
|
2019-01-06 16:51:29 +00:00
|
|
|
py.test test_pytest_rerunfailures.py
|
2018-01-09 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-06 16:51:29 +00:00
|
|
|
description = "pytest plugin to re-run tests to eliminate flaky failures";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
|
2018-01-09 17:08:02 +00:00
|
|
|
license = licenses.mpl20;
|
2020-06-04 23:25:54 +01:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
2018-01-09 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|