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
This commit is contained in:
Ricardo Wurmus 2024-12-21 14:51:51 +01:00
parent fd954108f2
commit 43b061aaf6
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -8412,13 +8412,13 @@ errors when data is invalid.")
(package (package
(inherit python-pydantic) (inherit python-pydantic)
(name "python-pydantic") (name "python-pydantic")
(version "2.5.3") (version "2.7.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pydantic" version)) (uri (pypi-uri "pydantic" version))
(sha256 (sha256
(base32 "0yiz75zp93x6x2czm772cz5pzn00i703irncjwb99c1m4p35gvxk")))) (base32 "10xk9d5rgvqsp05r2qpli7ls2489x18kay944qp4d8ic4r1dvv5m"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -8427,21 +8427,17 @@ errors when data is invalid.")
;; These tests include hashes that keep changing depending on ;; These tests include hashes that keep changing depending on
;; package versions. ;; package versions.
"--ignore=tests/benchmarks/test_north_star.py" "--ignore=tests/benchmarks/test_north_star.py"
"-k" (string-join "-k"
;; need python-email-validator >= 2.0.0 (string-join
(list "not test_fastapi_startup_perf" (list
;; Test fails with assertion is not equal. ;; Not implemented
"test_assert_raises_validation_error" "not test_serialize_unsubstituted_typevars_bound_default_supported"
;; Cannot generate a JsonSchema for ;; Needs email-validator
;; core_schema.CallableSchema [skipped-choice]. "test_fastapi_startup_perf"
"test_callable_fallback_with_non_serializable_default" ;; Cannot generate a JsonSchema for
;; Failed: DID NOT WARN. No warnings of type (<class ;; core_schema.CallableSchema [skipped-choice].
;; 'pydantic.warnings.PydanticDeprecatedSince20'>,) "test_callable_fallback_with_non_serializable_default")
;; were emitted. " and not "))
"test_use_bare"
"test_use_no_fields"
"test_validator_bad_fields_throws_configerror")
" and not "))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'pre-check (add-before 'check 'pre-check
@ -8454,11 +8450,12 @@ errors when data is invalid.")
(("ignore:path is deprecated.*:DeprecationWarning:") (("ignore:path is deprecated.*:DeprecationWarning:")
"ignore::DeprecationWarning"))))))) "ignore::DeprecationWarning")))))))
(native-inputs (native-inputs
(list python-hatchling (list tzdata-for-tests
python-hatch-fancy-pypi-readme
python-cloudpickle python-cloudpickle
python-dirty-equals python-dirty-equals
python-faker python-hatch-fancy-pypi-readme
python-hatchling
python-jsonschema
python-pytest python-pytest
python-pytest-benchmark python-pytest-benchmark
python-pytest-mock)) python-pytest-mock))