2018-01-09 09:08:02 -08:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2019-11-28 22:33:15 -08:00
|
|
|
version = "8.0";
|
2018-01-09 09:08:02 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-28 22:33:15 -08:00
|
|
|
sha256 = "04p8rfvv7yi3gsdm1dw1mfhjwg6507rhgj7nbm5gfqw4kxmj7h8p";
|
2018-01-09 09:08:02 -08:00
|
|
|
};
|
|
|
|
|
2019-04-02 14:41:01 -07:00
|
|
|
checkInputs = [ mock pytest ];
|
2018-01-09 09:08:02 -08:00
|
|
|
|
2018-09-13 08:45:49 -07:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
2018-01-09 09:08:02 -08:00
|
|
|
checkPhase = ''
|
2019-01-06 08:51:29 -08:00
|
|
|
py.test test_pytest_rerunfailures.py
|
2018-01-09 09:08:02 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-06 08:51:29 -08:00
|
|
|
description = "pytest plugin to re-run tests to eliminate flaky failures";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
|
2018-01-09 09:08:02 -08:00
|
|
|
license = licenses.mpl20;
|
2019-03-12 15:45:33 -07:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-01-09 09:08:02 -08:00
|
|
|
};
|
|
|
|
}
|