diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-12-21 14:51:51 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:26 +0100 |
commit | 43b061aaf6fbf4c03d61abb2e0a2611c41ba5f5e (patch) | |
tree | df84ad2d735c47d73085ede326d1d7b7bdbd908b | |
parent | fd954108f2f31b350b651e4db9e88faaf3dba096 (diff) | |
download | guix-43b061aaf6fbf4c03d61abb2e0a2611c41ba5f5e.tar.gz guix-43b061aaf6fbf4c03d61abb2e0a2611c41ba5f5e.zip |
gnu: python-pydantic-2: Update to 2.7.0.
* gnu/packages/python-xyz.scm (python-pydantic-2): Update to 2.7.0.
[arguments]: Update tests.
[native-inputs]: Add tzdata-for-tests and python-jsonschema; remove
python-faker.
Change-Id: I8c85598f7603c58108602c6d67aa27314dea285e
-rw-r--r-- | gnu/packages/python-xyz.scm | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6dbd2e90ef..f43747610b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8412,13 +8412,13 @@ errors when data is invalid.") (package (inherit python-pydantic) (name "python-pydantic") - (version "2.5.3") + (version "2.7.0") (source (origin (method url-fetch) (uri (pypi-uri "pydantic" version)) (sha256 - (base32 "0yiz75zp93x6x2czm772cz5pzn00i703irncjwb99c1m4p35gvxk")))) + (base32 "10xk9d5rgvqsp05r2qpli7ls2489x18kay944qp4d8ic4r1dvv5m")))) (build-system pyproject-build-system) (arguments (list @@ -8427,21 +8427,17 @@ errors when data is invalid.") ;; These tests include hashes that keep changing depending on ;; package versions. "--ignore=tests/benchmarks/test_north_star.py" - "-k" (string-join - ;; need python-email-validator >= 2.0.0 - (list "not test_fastapi_startup_perf" - ;; Test fails with assertion is not equal. - "test_assert_raises_validation_error" - ;; Cannot generate a JsonSchema for - ;; core_schema.CallableSchema [skipped-choice]. - "test_callable_fallback_with_non_serializable_default" - ;; Failed: DID NOT WARN. No warnings of type (<class - ;; 'pydantic.warnings.PydanticDeprecatedSince20'>,) - ;; were emitted. - "test_use_bare" - "test_use_no_fields" - "test_validator_bad_fields_throws_configerror") - " and not ")) + "-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 ")) #:phases #~(modify-phases %standard-phases (add-before 'check 'pre-check @@ -8454,11 +8450,12 @@ errors when data is invalid.") (("ignore:path is deprecated.*:DeprecationWarning:") "ignore::DeprecationWarning"))))))) (native-inputs - (list python-hatchling - python-hatch-fancy-pypi-readme + (list tzdata-for-tests python-cloudpickle python-dirty-equals - python-faker + python-hatch-fancy-pypi-readme + python-hatchling + python-jsonschema python-pytest python-pytest-benchmark python-pytest-mock)) |