2020-06-15 15:56:04 +00:00
|
|
|
{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "9.1.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;
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test_pytest_rerunfailures.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|