3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix

27 lines
663 B
Nix
Raw Normal View History

2018-01-09 17:08:02 +00:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "6.0";
2018-01-09 17:08:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "978349ae00687504fd0f9d0970c37199ccd89cbdb0cb8c4ed7ee417ede582b40";
2018-01-09 17:08:02 +00:00
};
checkInputs = [ mock ];
2018-01-09 17:08:02 +00:00
propagatedBuildInputs = [ pytest ];
2018-01-09 17:08:02 +00:00
checkPhase = ''
py.test test_pytest_rerunfailures.py
2018-01-09 17:08:02 +00:00
'';
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ jgeerds ];
};
}