From 76f212716ba2d092707c7f5642b0067a7ffff9f2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 3 Jan 2025 21:33:55 +0100 Subject: gnu: python-pydantic-2: Update to 2.10.4. * gnu/packages/python-xyz.scm (python-pydantic-2): Update to 2.10.4. [arguments]: Run more tests. [native-inputs]: Remove python-cloudpickle. [propagated-inputs]: Add python-rich. Change-Id: I8c682d63a7b137c8e9dd1a0b890080f8e5d91cd9 --- gnu/packages/python-xyz.scm | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6ba95513d3..594c7bd019 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8429,13 +8429,13 @@ (define-public python-pydantic-2 (package (inherit python-pydantic) (name "python-pydantic") - (version "2.7.0") + (version "2.10.4") (source (origin (method url-fetch) (uri (pypi-uri "pydantic" version)) (sha256 - (base32 "10xk9d5rgvqsp05r2qpli7ls2489x18kay944qp4d8ic4r1dvv5m")))) + (base32 "01jg4ll2py05izm7s9hlv5xbxcsp26bvb2585gzf8vfs4fbjxwc2")))) (build-system pyproject-build-system) (arguments (list @@ -8444,17 +8444,8 @@ (define-public python-pydantic-2 ;; These tests include hashes that keep changing depending on ;; package versions. "--ignore=tests/benchmarks/test_north_star.py" - "-k" - (string-join - (list - ;; Not implemented - "not test_serialize_unsubstituted_typevars_bound_default_supported" - ;; Needs email-validator - "test_fastapi_startup_perf" - ;; Cannot generate a JsonSchema for - ;; core_schema.CallableSchema [skipped-choice]. - "test_callable_fallback_with_non_serializable_default") - " and not ")) + ;; Unimportant difference in one test's error message. + "--ignore=tests/test_networks.py") #:phases #~(modify-phases %standard-phases (add-before 'check 'pre-check @@ -8468,7 +8459,6 @@ (define-public python-pydantic-2 "ignore::DeprecationWarning"))))))) (native-inputs (list tzdata-for-tests - python-cloudpickle python-dirty-equals python-hatch-fancy-pypi-readme python-hatchling @@ -8479,6 +8469,7 @@ (define-public python-pydantic-2 (propagated-inputs (list python-annotated-types python-pydantic-core + python-rich python-typing-extensions)))) (define-public python-pydantic-core -- cgit v1.2.3