2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
28 lines
704 B
Nix
28 lines
704 B
Nix
{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-rerunfailures";
|
|
version = "9.0";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1r5qnkkhkfvx1jbi1wfyxpyggwyr32w6h5z3i93a03bc92kc4nl9";
|
|
};
|
|
|
|
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;
|
|
maintainers = with maintainers; [ das-g ];
|
|
};
|
|
}
|