2018-01-09 17:08:02 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
|
|
|
version = "4.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "18lpy6d9b4ck8j3jwh4vmxj54is0fwanpmpg70qg4y0fycdqzwks";
|
|
|
|
};
|
|
|
|
|
2018-01-10 17:17:13 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-01-09 17:08:02 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ jgeerds ];
|
|
|
|
};
|
|
|
|
}
|