2018-01-09 17:08:02 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2019-01-06 16:51:29 +00:00
|
|
|
version = "6.0";
|
2018-01-09 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-06 16:51:29 +00:00
|
|
|
sha256 = "978349ae00687504fd0f9d0970c37199ccd89cbdb0cb8c4ed7ee417ede582b40";
|
2018-01-09 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2018-09-13 16:45:49 +01:00
|
|
|
checkInputs = [ mock ];
|
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";
|
2018-01-09 17:08:02 +00:00
|
|
|
homepage = https://github.com/pytest-dev/pytest-rerunfailures;
|
|
|
|
license = licenses.mpl20;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-01-09 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|