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

27 lines
650 B
Nix
Raw Normal View History

2018-01-09 18:08:02 +01:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "7.0";
2018-01-09 18:08:02 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "1zfm9v80bqfdapygy9wmi6j6y5c179ixpnh9ih27py4v6cqwzjgk";
2018-01-09 18:08:02 +01:00
};
checkInputs = [ mock pytest ];
2018-01-09 18:08:02 +01:00
propagatedBuildInputs = [ pytest ];
2018-01-09 18:08:02 +01:00
checkPhase = ''
py.test test_pytest_rerunfailures.py
2018-01-09 18:08:02 +01:00
'';
meta = with stdenv.lib; {
description = "pytest plugin to re-run tests to eliminate flaky failures";
2018-01-09 18:08:02 +01:00
homepage = https://github.com/pytest-dev/pytest-rerunfailures;
license = licenses.mpl20;
maintainers = with maintainers; [ ];
2018-01-09 18:08:02 +01:00
};
}