[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH v4 04/12] gnu: Add python-pytest-rerunfailures.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH v4 04/12] gnu: Add python-pytest-rerunfailures. |
Date: |
Sun, 19 Dec 2021 00:29:09 +0000 |
* gnu/packages/python-check.scm (python-pytest-rerunfailures): New variable.
---
gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7c92252818..c0436afea7 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1145,6 +1145,34 @@ service processes for your tests with pytest.")
new fixtures, new methods and new comparison objects.")
(license license:expat)))
+(define-public python-pytest-rerunfailures
+ (package
+ (name "python-pytest-rerunfailures")
+ (version "10.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-rerunfailures" version))
+ (sha256
+ (base32 "15v68kggjvkflbqr0vz8gp5yp3pcsk0rz05bpg2l4xp0a6nin7ly"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest"
+ "test_pytest_rerunfailures.py")))))))
+ (native-inputs
+ (list python-pytest))
+ (home-page "https://github.com/pytest-dev/pytest-rerunfailures")
+ (synopsis "Pytest plugin to re-run tests to eliminate flaky failures")
+ (description "This package provides a Pytest plugin to re-run tests to
+eliminate flaky failures.")
+ (license license:mpl2.0)))
+
(define-public python-pytest-aiohttp
(package
(name "python-pytest-aiohttp")
--
2.30.2
- [bug#50018] [PATCH v4 01/12] gnu: Add python-click-repl., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 04/12] gnu: Add python-pytest-rerunfailures.,
Vinicius Monego <=
- [bug#50018] [PATCH v4 02/12] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 03/12] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 06/12] gnu: python-billiard: Update to 3.6.4.0., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 08/12] gnu: python-celery: Enable tests., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 07/12] gnu: python-celery: Update to 5., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 05/12] gnu: Add python-pytest-celery., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 11/12] gnu: Remove python2-amqp., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 09/12] gnu: Remove python2-celery., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 10/12] gnu: Remove python2-kombu., Vinicius Monego, 2021/12/18
- [bug#50018] [PATCH v4 12/12] gnu: Remove python2-billiard., Vinicius Monego, 2021/12/18