depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

36 lines
773 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
, packaging
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "11.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rKtEft/3wpp2uEECB8SNoBQGoWFlPJmjJc9XA9ROsWI=";
};
nativeBuildInputs = [ setuptools ];
buildInputs = [ pytest ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}