unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 59798@debbugs.gnu.org
Subject: [bug#59798] [PATCH 2/6] gnu: Add python-omegaconf.
Date: Sat, 3 Dec 2022 10:31:42 +0100	[thread overview]
Message-ID: <f5101eb60cf923d6be583b3adde23d4a825cd73e.camel@gmail.com> (raw)
In-Reply-To: <844eb869ce6d4bf984242268b254eeba522d2f9d.camel@gmail.com>

* gnu/packages/python-xyz.scm (python-omegaconf): New variable.
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 40c3f9c99c..49f551e35a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -193,6 +193,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages image)
   #:use-module (gnu packages image-processing)
   #:use-module (gnu packages imagemagick)
+  #:use-module (gnu packages java)
   #:use-module (gnu packages jupyter)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libevent)
@@ -14353,6 +14354,46 @@ (define-public python-configobj
     (home-page "https://github.com/DiffSK/configobj")
     (license license:bsd-3)))
 
+(define-public python-omegaconf
+  (package
+    (name "python-omegaconf")
+    (version "2.2.3")
+    (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
+                "00rw1rkjycn0jdg3jmar6jdxb1pcb21jclm5g1921s9z8f5ii5dh"))))
+    (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>=")))))))
+    (propagated-inputs (list java-antlr4-runtime-python
+                             python-pydevd
+                             python-pyyaml))
+    (native-inputs (list icedtea antlr4 python-pytest python-pytest-mock))
+    (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
     (name "python-configargparse")
-- 
2.38.1





  parent reply	other threads:[~2022-12-03 10:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
2022-12-03  9:29 ` [bug#59798] [PATCH 1/6] gnu: Add java-antlr4-runtime-python Liliana Marie Prikler
2022-12-03  9:31 ` Liliana Marie Prikler [this message]
2022-12-03  9:36 ` [bug#59798] [PATCH 3/6] gnu: python-iso3166: Update to 2.1.1 Liliana Marie Prikler
2022-12-03  9:40 ` [bug#59798] [PATCH 4/6] gnu: Add python-commonroad-vehicle-models Liliana Marie Prikler
2022-12-03  9:43 ` [bug#59798] [PATCH 5/6] gnu: Add python-commonroad-io Liliana Marie Prikler
2023-01-08 14:32   ` [bug#59798] [PATCH 0/6] Add CommonRoad Ludovic Courtès
2023-01-08 16:09     ` bug#59798: " Liliana Marie Prikler
2022-12-03  9:43 ` [bug#59798] [PATCH 6/6] gnu: Add python-commonroad-route-planner Liliana Marie Prikler
2023-01-08 14:31 ` [bug#59798] [PATCH 0/6] Add CommonRoad Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5101eb60cf923d6be583b3adde23d4a825cd73e.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=59798@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).