guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit bb8a013927b46a26acd3b11ae1c2bf358429be54
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 7 11:07:33 2025 +0000
gnu: python-pydantic-settings: Update to 2.12.0.
* gnu/packages/python-xyz.scm (python-pydantic-settings): Update to 2.12.0.
[arguments] <test-flags>: Simplify.
<phases>: Remove 'relax-requirements.
[propagated-inputs]: Add python-typing-inspection, python-pyyaml, and
python-tomli.
Change-Id: I4163761c01d60f121e580b460f948f447c95f256
---
gnu/packages/python-xyz.scm | 44 ++++++++++++--------------------------------
1 file changed, 12 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fb0b213e6d..2cd53a3e03 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10206,59 +10206,39 @@ Interfaces} via data models provided in the JSON
format.")
(define-public python-pydantic-settings
(package
(name "python-pydantic-settings")
- (version "2.7.1")
+ (version "2.12.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydantic_settings" version))
(sha256
- (base32 "14zcbl32m53zfh054bkqk4jcjp72q1wa0w5z5wygnjz66nnwmj8h"))))
+ (base32 "1l6gmw6v1nlm3cid92c5xw6ljw9fbwmjk2y0w5l2lg0yjppkhm80"))))
(build-system pyproject-build-system)
(arguments
(list
+ ;; tests: 399 passed, 27 skipped
#:test-flags
- #~(list "-k" (string-append
- ;; Disable tests requiring python-ruff.
- "not test_docs_examples[docs/index.md:24-83]"
- " and not test_docs_examples[docs/index.md:113-137]"
- " and not test_docs_examples[docs/index.md:148-156]"
- " and not test_docs_examples[docs/index.md:173-183]"
- " and not test_docs_examples[docs/index.md:193-201]"
- " and not test_docs_examples[docs/index.md:212-243]"
- " and not test_docs_examples[docs/index.md:286-317]"
- " and not test_docs_examples[docs/index.md:331-372]"
- " and not test_docs_examples[docs/index.md:430-439]"
- " and not test_docs_examples[docs/index.md:453-459]"
- " and not test_docs_examples[docs/index.md:514-522]"
- " and not test_docs_examples[docs/index.md:547-549]"
- " and not test_docs_examples[docs/index.md:553-585]"
- " and not test_docs_examples[docs/index.md:620-645]"
- " and not test_docs_examples[docs/index.md:654-732]"
- " and not test_docs_examples[docs/index.md:738-772]")
- "--ignore=tests/test_docs.py")
+ ;; XXX: Ignore tests requiring python-ruff.
+ #~(list "--ignore=tests/test_docs.py")
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'relax-requirements
- (lambda _
- (substitute* "pyproject.toml"
- ;; hatchling.build failed on this line with error:
- ;; ValueError: Unknown classifier in field
- ;; `project.classifiers`: Framework :: Pydantic :: 2
- (("'Framework :: Pydantic :: 2',") "")
- ;; python-dotenv>=0.21.0
- ((">=0.21.0") ">=0.20.0"))))
(add-before 'check 'set-home
(lambda _
;; FileNotFoundError: [Errno 2] No such file or directory:
;; '/homeless-shelter/
(setenv "HOME" "/tmp"))))))
- (propagated-inputs
- (list python-dotenv python-pydantic))
(native-inputs
(list python-hatchling
python-pytest
python-pytest-examples
python-pytest-mock))
+ (propagated-inputs
+ (list python-dotenv
+ python-pydantic
+ python-typing-inspection
+ ;; [optional]
+ python-pyyaml
+ python-tomli))
(home-page "https://docs.pydantic.dev/latest/usage/pydantic_settings/")
(synopsis "Settings management using Pydantic")
(description