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

commit fb2b5cb59acda2040082ba572b6a99957e2d4caf
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Dec 5 15:26:32 2025 +0000

    gnu: python-pydantic: Update to 2.12.5.
    
    * gnu/packages/python-xyz.scm (python-pydantic): Update to 2.12.5.
    [propagated-inputs]: Add python-annotated-types, python-pydantic-core, and
    python-typing-inspection.
    [native-inputs]: Remove python-setuptools and python-wheel; add 
tzdata-for-tests,
    python-dirty-equals, python-faker, python-hatch-fancy-pypi-readme,
    python-hatchling, python-jsonschema, python-pytest-benchmark,
    python-pytest-examples, and python-pytest-run-parallel.
    
    Change-Id: Ic844bac49a97736c1f2e2e01f7b732c0e2c36ea0
---
 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6ce138621b..5efb3425ce 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10022,29 +10022,39 @@ which can produce feeds in RSS 2.0, RSS 0.91, and 
Atom formats.")
 (define-public python-pydantic
   (package
     (name "python-pydantic")
-    (version "1.10.19")
+    (version "2.12.5")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/samuelcolvin/pydantic";)
-             (commit (string-append "v" version))))
+              (url "https://github.com/samuelcolvin/pydantic";)
+              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0swcpfq1y0h5dcj82idls8k5la4xh4c0vz47y7jci2qass8gjffc"))))
+        (base32 "0h1dwnd16smyknv7fzskv8akp96pw18mrd3l8a3nbhs1afslnd7m"))))
     (build-system pyproject-build-system)
     (arguments
      (list
+      ;; tests: 5428 passed, 1091 skipped, 24 xfailed
       #:test-flags
-      ;; One test fails with  not equal assertion.
-      #~(list 
"--deselect=tests/test_validators.py::test_assert_raises_validation_error")))
+      #~(list "--parallel-threads" (number->string (parallel-job-count)))))
     (native-inputs
-     (list python-pytest
+     (list tzdata-for-tests
+           python-dirty-equals
+           python-faker
+           python-hatch-fancy-pypi-readme
+           python-hatchling
+           python-jsonschema
+           python-pytest
+           python-pytest-benchmark
+           python-pytest-examples
            python-pytest-mock
-           python-setuptools
-           python-wheel))
+           python-pytest-run-parallel))
     (propagated-inputs
-     (list python-typing-extensions))
+     (list python-annotated-types
+           python-pydantic-core ;it's hard == requirement, keep it in sync
+           python-typing-extensions
+           python-typing-inspection))
     (home-page "https://github.com/samuelcolvin/pydantic";)
     (synopsis "Python data validation and settings management")
     (description

Reply via email to