guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit a8f378925597817c730640a0754c3a8cf885e2fa
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Jul 29 15:41:11 2025 +0100

    gnu: python-pytest-randomly: Update to 3.16.0.
    
    * gnu/packages/check.scm (python-pytest-randomly): Update to 3.16.0.
      [build-system]: Use pyproject.
      [arguments] <test-flags>: Utilize it.
      <phases>: Use default 'check.
      [propagated-inputs]: Remove python-importlib-metadata and python-pytest.
      [native-inputs]: Remove python-coverage; add python-pytest-bootstrap
      and python-setuptools.
    
    Change-Id: I9b66590bdc37f5b8bf857a8aeb640755f994d4f8
---
 gnu/packages/check.scm | 38 ++++++++++++++++----------------------
 1 file changed, 16 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 8106b4b158..62a59ae1fc 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1990,7 +1990,7 @@ reported in a previous test run.")
 (define-public python-pytest-randomly
   (package
     (name "python-pytest-randomly")
-    (version "3.11.0")
+    (version "3.16.0")
     (source (origin
               (method git-fetch)        ;no tests in pypi archive
               (uri (git-reference
@@ -1999,29 +1999,23 @@ reported in a previous test run.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1sjgq49g8f8973vhmzrim79b6wz29a765n99azjk1maimqh7mmik"))))
-    (build-system python-build-system)
+                "1ai6gn811wm1ixjimgpsi5nwlcpxaj4kmil69vf2s2ph0c2zw93s"))))
+    (build-system pyproject-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))
+      #:test-flags
+      #~(list "-p" "no:randomly"
+              ;; The tests validating ordering fail, as well as as two others,
+              ;; for unknown reasons (see:
+              ;; https://github.com/pytest-dev/pytest-randomly/issues/454).
+              "-k" "not test_it_runs_before_stepwise and not 
test_model_bakery")))
+    (native-inputs
+     (list python-factory-boy
+           python-faker
+           python-numpy
+           python-pytest-bootstrap
+           python-pytest-xdist
+           python-setuptools))
     (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

Reply via email to