mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
27 lines
663 B
Nix
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 ];
|
|
};
|
|
}
|