[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
62/166: gnu: Add python-pytest-randomly.
From: |
guix-commits |
Subject: |
62/166: gnu: Add python-pytest-randomly. |
Date: |
Tue, 19 Apr 2022 09:12:20 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit a412363e15bb46c6684c3cb823c8f5cefff51e5d
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")
- 75/166: gnu: python-scipy: Update to 1.8.0 and enable parallel build., (continued)
- 75/166: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/04/19
- 22/166: gnu: Add python-defcon-bootstrap., guix-commits, 2022/04/19
- 79/166: gnu: Add python-cffsubr., guix-commits, 2022/04/19
- 59/166: gnu: Add python-pytest-perf., guix-commits, 2022/04/19
- 90/166: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/19
- 63/166: gnu: Add psautohint-font-data., guix-commits, 2022/04/19
- 64/166: gnu: Add psautohint., guix-commits, 2022/04/19
- 93/166: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/19
- 61/166: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/19
- 33/166: gnu: Add python-cu2qu., guix-commits, 2022/04/19
- 62/166: gnu: Add python-pytest-randomly.,
guix-commits <=
- 105/166: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/19
- 118/166: gnu: Add python-nbdime., guix-commits, 2022/04/19
- 122/166: gnu: Add python-sphinx-theme-builder., guix-commits, 2022/04/19
- 100/166: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/04/19
- 124/166: gnu: texlive-fontspec: Add missing propagated inputs., guix-commits, 2022/04/19
- 121/166: gnu: Add python-pep621., guix-commits, 2022/04/19
- 110/166: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/04/19
- 126/166: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/04/19
- 115/166: gnu: python-nbval: Fix build., guix-commits, 2022/04/19
- 96/166: gnu: Add python-pydevd., guix-commits, 2022/04/19