mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-14 16:14:50 +00:00
Merge pull request #213866 from das-g/pytest-rerunfailures-11.0
python3Packages.pytest-rerunfailures: 10.3 → 11.0
This commit is contained in:
commit
6cb842cc89
@ -1,23 +1,31 @@
|
||||
{ lib, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, packaging
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-rerunfailures";
|
||||
version = "10.3";
|
||||
version = "11.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-2CRNeZ+Jpu215XMB3a6ztvENZpFjjVHoCzcTEVkuKMY=";
|
||||
hash = "sha256-zuWeTm8Nc65j+6CZhlMUupuRW3GTSVQREPoBL/tu+xM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ packaging ];
|
||||
|
||||
nativeCheckInputs = [ mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test test_pytest_rerunfailures.py
|
||||
'';
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin to re-run tests to eliminate flaky failures";
|
||||
|
Loading…
Reference in New Issue
Block a user