depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

28 lines
697 B
Nix

{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "10.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "7617c06de13ee6dd2df9add7e275bfb2bcebbaaf3e450f5937cd0200df824273";
};
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 ];
};
}