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

29 lines
698 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
2018-01-09 17:08:02 +00:00
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "9.0";
2018-01-09 17:08:02 +00:00
disabled = pythonOlder "3.5";
2018-01-09 17:08:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1r5qnkkhkfvx1jbi1wfyxpyggwyr32w6h5z3i93a03bc92kc4nl9";
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";
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
2018-01-09 17:08:02 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ ];
2018-01-09 17:08:02 +00:00
};
}