From b34db23b8af9e40dec1bf2420aa414e63786d532 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 15 Dec 2025 21:08:54 +0000 Subject: [PATCH] gnu: python-pytest-randomly: Update to 4.0.1. * gnu/packages/check.scm (python-pytest-randomly): Update to 4.0.1. [arguments] : Rework skipped tests to reduce closure size. [native-inputs]: Remove python-factory-boy, python-faker, python-numpy, and python-pytest-xdist. Change-Id: I1293bc007a1e4813f136758dd242b541fcb59c81 Signed-off-by: Rutherther --- gnu/packages/check.scm | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index ef0daa034b2be46408c3e1b3a87aeeacb691e780..46f5df31fd973e5674127d988976e823afbdf3cc 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1916,31 +1916,37 @@ reported in a previous test run.") (define-public python-pytest-randomly (package (name "python-pytest-randomly") - (version "3.16.0") + (version "4.0.1") (source (origin - (method git-fetch) ;no tests in pypi archive + (method git-fetch) (uri (git-reference (url "https://github.com/pytest-dev/pytest-randomly") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 - "1ai6gn811wm1ixjimgpsi5nwlcpxaj4kmil69vf2s2ph0c2zw93s")))) + "0zglnyl3wc2ri9dhkvd1z0ywksk2v1abpdlclc253c8xivv4c3ai")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 23 passed, 13 deselected #: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"))) + ;; Skip tests requireing python-factory-boy, python-faker, + ;; python-numpy, and python-pytest-xdist to reduce closure size. + "-k" (string-join + (list "not test_entrypoint_injection" + "test_factory_boy" + "test_faker" + "test_faker_fixture" + "test_it_runs_before_stepwise" + "test_model_bakery" + "test_numpy" + "test_numpy_doesnt_crash_with_large_seed" + "test_xdist") + " and not ")))) (native-inputs - (list python-factory-boy - python-faker - python-numpy - python-pytest-bootstrap - python-pytest-xdist + (list python-pytest-bootstrap python-setuptools)) (home-page "https://github.com/pytest-dev/pytest-randomly") (synopsis "Pytest plugin to randomly order tests")