summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-05 15:26:32 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:18:12 +0100
commit2a9429b71586375290e62815f7ad4a5f873ece9f (patch)
tree245687872e9a76f13c8b9190fa2247848dd2fd9e /gnu/packages/python-xyz.scm
parent01e1779319befb75bb50d6b4d6990d36eaa6c18f (diff)
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 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm30
1 files changed, 20 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3d66d302abb..0b545c74cc1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10068,29 +10068,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