depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

28 lines
698 B
Nix

{ lib, 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";
};
buildInputs = [ pytest ];
checkInputs = [ mock pytest ];
checkPhase = ''
py.test test_pytest_rerunfailures.py
'';
meta = with 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 ];
};
}