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 <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-21 15:59:10 +02:00 committed by Sharlatan Hellseher
parent 2fafdc0645
commit cea839855e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -19953,54 +19953,65 @@ config files.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-omegaconf (define-public python-omegaconf
(package (let ((commit "117f7de07285e4d1324b9229eaf873de15279457")
(name "python-omegaconf") (revision "0"))
(version "2.3.0") (package
(source (origin (name "python-omegaconf")
(method git-fetch) (version (git-version "2.3.0" revision commit))
(uri (git-reference (source
(url "https://github.com/omry/omegaconf") (origin
(commit (string-append "v" version)))) (method git-fetch)
(file-name (git-file-name name version)) (uri (git-reference
(modules '((guix build utils))) (url "https://github.com/omry/omegaconf")
(snippet #~(begin (commit commit)))
(delete-file-recursively "build_helpers/bin") (file-name (git-file-name name version))
(substitute* "build_helpers/build_helpers.py" (modules '((guix build utils)))
(("java") "antlr4") (snippet
(("\"-jar\",") "") #~(begin
(("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") "")))) (delete-file-recursively "build_helpers/bin")
(sha256 (substitute* "build_helpers/build_helpers.py"
(base32 (("java") "antlr4")
"0cpkkzda919f24y9s04mi15v9zksvln95ics8cr31rcpi2wbh5j3")))) (("\"-jar\",") "")
(build-system pyproject-build-system) (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
(arguments (sha256
(list #:phases (base32 "0f922dar5dwyyfk1bwsbs9gws0vyj1w2h9n3148hcfa8c4hg2ysv"))))
#~(modify-phases %standard-phases (build-system pyproject-build-system)
(add-after 'unpack 'loosen-requirements (arguments
(lambda _ (list
(substitute* "requirements/base.txt" #:test-flags
(("antlr4-python3-runtime==.*") ;; XXX: Those tests currently fail collection.
"antlr4-python3-runtime >=4.9\n")) #~(list "--ignore=tests/structured_conf/test_structured_config.py"
;; Ignore deprecation warnings. "--ignore=tests/test_basic_ops_list.py"
(substitute* "pyproject.toml" "--ignore=tests/test_merge.py"
(("-Werror") ""))))))) "--ignore=tests/test_select.py")
(native-inputs #:phases
(list icedtea #~(modify-phases %standard-phases
antlr4 (add-after 'unpack 'loosen-requirements
python-pytest (lambda _
python-pytest-mock (substitute* "requirements/base.txt"
python-setuptools (("antlr4-python3-runtime==.*")
python-wheel)) "antlr4-python3-runtime >=4.9\n"))
(propagated-inputs ;; Ignore deprecation warnings.
(list java-antlr4-runtime-python (substitute* "pyproject.toml"
python-pydevd (("-Werror") "")))))))
python-pyyaml)) (native-inputs
(home-page "https://github.com/omry/omegaconf") (list icedtea
(synopsis "Flexible configuration system") antlr4
(description "OmegaConf is a hierarchical configuration system and python-pytest
supports merging configurations from multiple sources. It provides a python-pytest-mock
consistent API regardless of how the configuration was created.") python-setuptools
(license license:bsd-3))) 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 (define-public python-configargparse
(package (package