2018-01-09 18:08:02 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-rerunfailures";
|
2018-06-12 18:47:05 +02:00
|
|
|
version = "4.1";
|
2018-01-09 18:08:02 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 18:47:05 +02:00
|
|
|
sha256 = "be6bf93ed618c8899aeb6721c24f8009c769879a3b4931e05650f3c173ec17c5";
|
2018-01-09 18:08:02 +01:00
|
|
|
};
|
|
|
|
|
2018-09-13 17:45:49 +02:00
|
|
|
checkInputs = [ mock ];
|
2018-01-09 18:08:02 +01:00
|
|
|
|
2018-09-13 17:45:49 +02:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
|
|
|
# disable tests that fail with pytest 3.7.4
|
2018-01-09 18:08:02 +01:00
|
|
|
checkPhase = ''
|
2018-09-13 17:45:49 +02:00
|
|
|
py.test test_pytest_rerunfailures.py -k 'not test_reruns_with_delay'
|
2018-01-09 18:08:02 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|