[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
62/242: gnu: Add python-pytest-randomly.
From: |
guix-commits |
Subject: |
62/242: gnu: Add python-pytest-randomly. |
Date: |
Thu, 12 May 2022 14:14:08 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 1702331d016eba117124299b68ab77cc1ed22270
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 6 09:16:07 2022 -0400
gnu: Add python-pytest-randomly.
* 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 @@ tests. Tests can be rerun in a specific order by
passing a seed value
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")
- 148/242: gnu: Add python-aioredis., (continued)
- 148/242: gnu: Add python-aioredis., guix-commits, 2022/05/12
- 157/242: gnu: python-numba: Update to 0.55.1., guix-commits, 2022/05/12
- 168/242: gnu: python-jupyter-kernel-mgmt: Update to 0.5.1 and disable tests., guix-commits, 2022/05/12
- 201/242: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/05/12
- 192/242: gnu: python-cantools: Update to 37.0.7., guix-commits, 2022/05/12
- 214/242: gnu: python-sphinx: Update to 4.5.0., guix-commits, 2022/05/12
- 205/242: gnu: python-keyring: Fix test suite., guix-commits, 2022/05/12
- 218/242: gnu: python-sphinxcontrib-websupport: Update to 1.2.4., guix-commits, 2022/05/12
- 236/242: gnu: python-matplotlib: Update to 3.5.2., guix-commits, 2022/05/12
- 63/242: gnu: Add psautohint-font-data., guix-commits, 2022/05/12
- 62/242: gnu: Add python-pytest-randomly.,
guix-commits <=
- 59/242: gnu: Add python-pytest-perf., guix-commits, 2022/05/12
- 65/242: gnu: Add python-ordered-set., guix-commits, 2022/05/12
- 69/242: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/05/12
- 67/242: gnu: Add python-ubelt., guix-commits, 2022/05/12
- 66/242: gnu: Add python-xdoctest., guix-commits, 2022/05/12
- 71/242: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/05/12
- 104/242: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/05/12
- 97/242: gnu: Add python-debugpy., guix-commits, 2022/05/12
- 102/242: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/05/12
- 88/242: gnu: Add texlive-bidi., guix-commits, 2022/05/12