nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix

27 lines
650 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 = "8.0";
2018-01-09 17:08:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "04p8rfvv7yi3gsdm1dw1mfhjwg6507rhgj7nbm5gfqw4kxmj7h8p";
2018-01-09 17:08:02 +00:00
};
checkInputs = [ mock pytest ];
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; [ ];
2018-01-09 17:08:02 +00:00
};
}