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

commit 2c012f9b88ba7c6f8736a627264186f3dd547134
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Nov 10 10:14:50 2026 +0000

    gnu: python-jsonpickle: Update to 4.1.4.
    
    This change reduce closure size by dropping all optional native-inputs
    which do not affect check fidelity.
    
    * gnu/packages/python-web.scm (python-jsonpickle): Update to 4.1.4.
    [source]: Switch to git-fetch.
    [arguments] <test-flags>: Use --ignore and --deselect instead of fixed
    tests directory.
    [phases]{pre-check}: Remove phase.
    [native-inputs]: Remove python-bson, python-ecdsa, python-feedparser,
    python-pymongo, python-pytest-benchmark, python-pytest-enabler,
    python-sqlalchemy, python-ujson, and python-wheel.
    
    Relates-to: guix/guix#11726
---
 gnu/packages/python-web.scm | 46 +++++++++++++++++++++------------------------
 1 file changed, 21 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 214e57fb25d..22e89663f25 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8048,38 +8048,34 @@ Encryption} (JOSE) Web Standards.")
 (define-public python-jsonpickle
   (package
     (name "python-jsonpickle")
-    (version "4.0.0")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "jsonpickle" version))
-              (sha256
-               (base32
-                "0dipys8p4hkqnp9nwkpysfv7mhws2hrr73wgn00pdmq4n990hrzw"))))
+    (version "4.1.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/jsonpickle/jsonpickle";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "02ahz44snp8d7aa3xp96afknv0hp3ji3kqbnk9mxldhdnmiayiwx"))))
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:test-flags '(list "tests")
-      #:phases
-      '(modify-phases %standard-phases
-         (add-before 'check 'pre-check
-           (lambda* (#:key inputs #:allow-other-keys)
-             (setenv "TZ" "UTC")
-             (setenv "TZDIR"
-                     (search-input-directory inputs "share/zoneinfo")))))))
+      ;; tests: 338 passed, 23 skipped, 1 deselected, 338 warnings
+      #:test-flags
+      ;; Ignore benchmark tests, fuzzing and tests requiring NumPy and Pandas.
+      #~(list "--ignore=benchmarking/"
+              "--ignore=fuzzing/"
+              "--ignore=jsonpickle/ext/numpy.py"
+              "--ignore=jsonpickle/ext/pandas.py"
+              "--ignore=jsonpickle/tags_pd.py"
+              ;; See: <https://github.com/jsonpickle/jsonpickle/issues/601>.
+              "--deselect=tests/jsonpickle_test.py::test_warnings")))
     (native-inputs
-     (list python-bson
-           python-ecdsa
-           python-feedparser
-           python-pymongo
-           python-pytest
-           python-pytest-benchmark
-           python-pytest-enabler
+     (list python-pytest
            python-setuptools
            python-setuptools-scm
            python-simplejson
-           python-sqlalchemy
-           python-ujson
-           python-wheel
            tzdata-for-tests))
     (home-page "https://jsonpickle.github.io/";)
     (synopsis "Serialize object graphs into JSON")

Reply via email to