[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 062/232] gnu: Add python-pytest-randomly.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 062/232] gnu: Add python-pytest-randomly. |
Date: |
Sun, 24 Apr 2022 23:56:28 -0400 |
* gnu/packages/check.scm (python-pytest-randomly): New variable.
---
gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e3523d77dc..c67a6f2675 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1242,6 +1242,47 @@ (define-public python-pytest-random-order
reported in a previous test run.")
(license license:expat)))
+(define-public python-pytest-randomly
+ (package
+ (name "python-pytest-randomly")
+ (version "3.11.0")
+ (source (origin
+ (method git-fetch) ;no tests in pypi archive
+ (uri (git-reference
+ (url "https://github.com/pytest-dev/pytest-randomly")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1sjgq49g8f8973vhmzrim79b6wz29a765n99azjk1maimqh7mmik"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; The tests validating ordering fail, as well as as two
+ ;; others, for unknown reasons (see:
+ ;; https://github.com/pytest-dev/pytest-randomly/issues/454).
+ (invoke "pytest" "-vv" "-k"
+ (string-append
+ "not reordered "
+ "and not test_it_runs_before_stepwise "
+ "and not test_entrypoint_injection"))))))))
+ (native-inputs (list python-coverage
+ python-factory-boy
+ python-faker
+ python-numpy
+ python-pytest-xdist))
+ (propagated-inputs (list python-importlib-metadata python-pytest))
+ (home-page "https://github.com/pytest-dev/pytest-randomly")
+ (synopsis "Pytest plugin to randomly order tests")
+ (description "This is a Pytest plugin to randomly order tests and control
+Python's @code{random.seed}.")
+ (license license:expat)))
+
(define-public python-pytest-runner
(package
(name "python-pytest-runner")
--
2.34.0
- [bug#55104] [PATCH 077/232] gnu: Add python-fonttools-next., (continued)
- [bug#55104] [PATCH 077/232] gnu: Add python-fonttools-next., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 086/232] gnu: Add font-amiri., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 089/232] gnu: Add font-gfs-ambrosia., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 096/232] gnu: Add python-pydevd., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 093/232] gnu: python-black: Update to 22.3.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 034/232] gnu: Add python-ufoprocessor., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 054/232] gnu: Add python-jaraco-functools., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 058/232] gnu: Add python-tempora., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 061/232] gnu: python-faker: Update to 13.3.4 and honor TESTS?., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 049/232] gnu: python-mypy: Update to 0.942 and fix search path., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 062/232] gnu: Add python-pytest-randomly.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 053/232] gnu: Add python-jaraco-context., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 064/232] gnu: Add psautohint., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 066/232] gnu: Add python-xdoctest., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 068/232] gnu: python-setuptools: Update to 62.0.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 069/232] gnu: python-pathpy: Deprecate by python-path., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 051/232] gnu: python-pytest-checkdocs: Update to 2.7.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 071/232] gnu: python-pytest-cov: Update to 3.0.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 073/232] gnu: python-jupyter-packaging: Update to 0.12.0, run test suite., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 080/232] gnu: Add skia., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 078/232] gnu: Add python-afdko., Maxim Cournoyer, 2022/04/25