depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

28 lines
718 B
Nix

{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "9.1.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
};
checkInputs = [ mock pytest ];
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; [ das-g ];
};
}