nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix
2019-01-11 19:39:01 -05:00

27 lines
663 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "6.0";
src = fetchPypi {
inherit pname version;
sha256 = "978349ae00687504fd0f9d0970c37199ccd89cbdb0cb8c4ed7ee417ede582b40";
};
checkInputs = [ mock ];
propagatedBuildInputs = [ pytest ];
checkPhase = ''
py.test test_pytest_rerunfailures.py
'';
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 ];
};
}