guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit cea839855e5ea1c17efd303dc5da6dacb4f5f4f6
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Sep 21 15:59:10 2025 +0200
gnu: python-omegaconf: Update to 2.3.0-0.117f7de.
* gnu/packages/python-xyz.scm (python-omegaconf): Update to 2.3.0-0.117f7de.
[arguments]<#:test-flags>: Ignore test files that fail collection.
[description]: Improve style.
Change-Id: I3bf8d9d33e1f8563bf0cb889b28c49dc8b15ce3c
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 107 ++++++++++++++++++++++++--------------------
1 file changed, 59 insertions(+), 48 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 476bfe4f32..f484206414 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19953,54 +19953,65 @@ config files.")
(license license:bsd-3)))
(define-public python-omegaconf
- (package
- (name "python-omegaconf")
- (version "2.3.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/omry/omegaconf")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (modules '((guix build utils)))
- (snippet #~(begin
- (delete-file-recursively "build_helpers/bin")
- (substitute* "build_helpers/build_helpers.py"
- (("java") "antlr4")
- (("\"-jar\",") "")
- (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),")
""))))
- (sha256
- (base32
- "0cpkkzda919f24y9s04mi15v9zksvln95ics8cr31rcpi2wbh5j3"))))
- (build-system pyproject-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'loosen-requirements
- (lambda _
- (substitute* "requirements/base.txt"
- (("antlr4-python3-runtime==.*")
- "antlr4-python3-runtime >=4.9\n"))
- ;; Ignore deprecation warnings.
- (substitute* "pyproject.toml"
- (("-Werror") "")))))))
- (native-inputs
- (list icedtea
- antlr4
- python-pytest
- python-pytest-mock
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list java-antlr4-runtime-python
- python-pydevd
- python-pyyaml))
- (home-page "https://github.com/omry/omegaconf")
- (synopsis "Flexible configuration system")
- (description "OmegaConf is a hierarchical configuration system and
-supports merging configurations from multiple sources. It provides a
-consistent API regardless of how the configuration was created.")
- (license license:bsd-3)))
+ (let ((commit "117f7de07285e4d1324b9229eaf873de15279457")
+ (revision "0"))
+ (package
+ (name "python-omegaconf")
+ (version (git-version "2.3.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/omry/omegaconf")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (delete-file-recursively "build_helpers/bin")
+ (substitute* "build_helpers/build_helpers.py"
+ (("java") "antlr4")
+ (("\"-jar\",") "")
+ (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
+ (sha256
+ (base32 "0f922dar5dwyyfk1bwsbs9gws0vyj1w2h9n3148hcfa8c4hg2ysv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; XXX: Those tests currently fail collection.
+ #~(list "--ignore=tests/structured_conf/test_structured_config.py"
+ "--ignore=tests/test_basic_ops_list.py"
+ "--ignore=tests/test_merge.py"
+ "--ignore=tests/test_select.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'loosen-requirements
+ (lambda _
+ (substitute* "requirements/base.txt"
+ (("antlr4-python3-runtime==.*")
+ "antlr4-python3-runtime >=4.9\n"))
+ ;; Ignore deprecation warnings.
+ (substitute* "pyproject.toml"
+ (("-Werror") "")))))))
+ (native-inputs
+ (list icedtea
+ antlr4
+ python-pytest
+ python-pytest-mock
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list java-antlr4-runtime-python
+ python-pydevd
+ python-pyyaml))
+ (home-page "https://github.com/omry/omegaconf")
+ (synopsis "Flexible configuration system")
+ (description
+ "OmegaConf is a hierarchical configuration system and supports merging
+configurations from multiple sources. It provides a consistent API regardless
+of how the configuration was created.")
+ (license license:bsd-3))))
(define-public python-configargparse
(package