unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59798] [PATCH 1/6] gnu: Add java-antlr4-runtime-python.
  2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
@ 2022-12-03  9:29 ` Liliana Marie Prikler
  2022-12-03  9:31 ` [bug#59798] [PATCH 2/6] gnu: Add python-omegaconf Liliana Marie Prikler
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:29 UTC (permalink / raw)
  To: 59798

* gnu/packages/java.scm (java-antlr4-runtime-python): New variable.
---
 gnu/packages/java.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f80406cab9..bc6e7057cb 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -49,6 +49,7 @@ (define-module (gnu packages java)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system maven)
+  #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages attr)
@@ -8694,6 +8695,26 @@ (define-public java-antlr4-runtime-cpp
     (description "This package contains the C++ runtime library used with C++
 generated sources by ANTLR.")))
 
+(define-public java-antlr4-runtime-python
+  (package
+    (inherit java-antlr4-runtime)
+    (name "java-antlr4-runtime-python")
+    (outputs '("out"))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:tests? #f                       ; tests require antlr
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _
+              (chdir "runtime/Python3"))))))
+    (native-inputs (list pkg-config))
+    (inputs (list `(,util-linux "lib"))) ; libuuid
+    (synopsis "ANTLR Python runtime library")
+    (description "This package contains the Python runtime library used with
+Python generated sources by ANTLR.")))
+
 (define-public antlr4
   (package
     (inherit java-antlr4-runtime)
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 2/6] gnu: Add python-omegaconf.
  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
  2022-12-03  9:36 ` [bug#59798] [PATCH 3/6] gnu: python-iso3166: Update to 2.1.1 Liliana Marie Prikler
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:31 UTC (permalink / raw)
  To: 59798

* 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





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 3/6] gnu: python-iso3166: Update to 2.1.1.
  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 ` [bug#59798] [PATCH 2/6] gnu: Add python-omegaconf Liliana Marie Prikler
@ 2022-12-03  9:36 ` Liliana Marie Prikler
  2022-12-03  9:40 ` [bug#59798] [PATCH 4/6] gnu: Add python-commonroad-vehicle-models Liliana Marie Prikler
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:36 UTC (permalink / raw)
  To: 59798

* gnu/packages/iso-codes.scm (python-iso3166): Update to 2.1.1.
---
 gnu/packages/iso-codes.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm
index 95ab9ca44f..d2bace6a3c 100644
--- a/gnu/packages/iso-codes.scm
+++ b/gnu/packages/iso-codes.scm
@@ -109,14 +109,14 @@ (define-public python-iso639
 (define-public python-iso3166
   (package
     (name "python-iso3166")
-    (version "0.9")
+    (version "2.1.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "iso3166" version))
        (sha256
         (base32
-         "0hm0xm30sprk1jssmn4cqks0x3nx5fp8r5ypvahcysmmayzrsnjl"))))
+         "068p94gavc8gbmp5a2kw8hi5l551wfzbpmp6z7ll8sx6vnw53mgw"))))
     (build-system python-build-system)
     (home-page "https://github.com/deactivated/python-iso3166")
     (synopsis "Self-contained ISO 3166-1 country definitions")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 4/6] gnu: Add python-commonroad-vehicle-models.
  2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
                   ` (2 preceding siblings ...)
  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 ` Liliana Marie Prikler
  2022-12-03  9:43 ` [bug#59798] [PATCH 5/6] gnu: Add python-commonroad-io Liliana Marie Prikler
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:40 UTC (permalink / raw)
  To: 59798

* gnu/packages/simulation.scm (%commonroad-dont-install-license-at-root)
(python-commonroad-vehicle-models): New variables.
---
 gnu/packages/simulation.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 256e404970..07f1f879f9 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -936,6 +936,36 @@ (define-public python-dolfin-adjoint
 @url{https://firedrakeproject.org,firedrake}.")
     (license license:lgpl3)))
 
+(define %commonroad-dont-install-license-at-root
+  #~(substitute* "setup.py"
+      (("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],")
+       "")))
+
+(define-public python-commonroad-vehicle-models
+  (package
+    (name "python-commonroad-vehicle-models")
+    (version "3.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "commonroad-vehicle-models" version))
+              (sha256
+               (base32
+                "13jg0cys7y4n7rg548w6mxk9g10gd5qxmj4ynrlriczpffqy6kc7"))))
+    (build-system python-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (propagated-inputs (list python-numpy python-omegaconf))
+    (home-page "https://commonroad.in.tum.de/")
+    (synopsis "CommonRoad vehicle models")
+    (description "This package provides vehicle models used in CommonRoad
+benchmarks.  Varying abstraction levels are used ranging from kinematic single
+track models to multi-body models.")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 5/6] gnu: Add python-commonroad-io.
  2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
                   ` (3 preceding siblings ...)
  2022-12-03  9:40 ` [bug#59798] [PATCH 4/6] gnu: Add python-commonroad-vehicle-models Liliana Marie Prikler
@ 2022-12-03  9:43 ` Liliana Marie Prikler
  2023-01-08 14:32   ` [bug#59798] [PATCH 0/6] Add CommonRoad Ludovic Courtès
  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
  6 siblings, 1 reply; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:43 UTC (permalink / raw)
  To: 59798

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

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 07f1f879f9..7659cf224a 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -40,6 +40,7 @@ (define-module (gnu packages simulation)
   #:use-module (gnu packages graphics)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages iso-codes)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages m4)
   #:use-module (gnu packages maths)
@@ -47,6 +48,7 @@ (define-module (gnu packages simulation)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-science)
@@ -966,6 +968,45 @@ (define-public python-commonroad-vehicle-models
 track models to multi-body models.")
     (license license:bsd-3)))
 
+(define-public python-commonroad-io
+  (package
+    (name "python-commonroad-io")
+    (version "2022.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "commonroad-io" version))
+              (sha256
+               (base32
+                "1cj9zj567mca8xb8sx9h3nnl2cccv6vh8h73imgpq61cimk9mvas"))))
+    (build-system python-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (propagated-inputs (list python-commonroad-vehicle-models
+                             python-iso3166
+                             python-lxml
+                             python-matplotlib
+                             python-networkx
+                             python-numpy
+                             python-omegaconf
+                             python-pillow
+                             python-protobuf
+                             python-rtree
+                             python-scipy
+                             python-shapely
+                             python-tqdm))
+    (native-inputs (list python-lxml python-pytest))
+    (home-page "https://commonroad.in.tum.de/")
+    (synopsis "Read, write, and visualize CommonRoad scenarios.")
+    (description "This package provides methods to read, write, and visualize
+CommonRoad scenarios and planning problems.  It can be used as a framework for
+implementing motion planning algorithms to solve CommonRoad Benchmarks
+and is the basis for other tools of the CommonRoad Framework")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 6/6] gnu: Add python-commonroad-route-planner.
  2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
                   ` (4 preceding siblings ...)
  2022-12-03  9:43 ` [bug#59798] [PATCH 5/6] gnu: Add python-commonroad-io Liliana Marie Prikler
@ 2022-12-03  9:43 ` Liliana Marie Prikler
  2023-01-08 14:31 ` [bug#59798] [PATCH 0/6] Add CommonRoad Ludovic Courtès
  6 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:43 UTC (permalink / raw)
  To: 59798

* gnu/packages/simulation.scm (python-commonroad-route-planner): New variable.
---
 gnu/packages/simulation.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 7659cf224a..762cfc2b84 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1007,6 +1007,39 @@ (define-public python-commonroad-io
 and is the basis for other tools of the CommonRoad Framework")
     (license license:bsd-3)))
 
+(define-public python-commonroad-route-planner
+  (package
+    (name "python-commonroad-route-planner")
+    (version "2022.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0xn0l7bzmj56d4mlqacvbl8mdvsffkg2fn2lzfmis5jl4vp99ipf"))))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-setup.py
+                 (lambda _
+                   #$%commonroad-dont-install-license-at-root)))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-commonroad-io
+                             python-matplotlib
+                             python-networkx
+                             python-numpy
+                             python-setuptools
+                             python-shapely))
+    (home-page "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
+    (synopsis "Route planner for CommonRoad scenarios")
+    (description "This package provides functions for route planning, that is
+finding sequences that lead from a given start lanelet to some goal
+lanelet(s).")
+    (license license:bsd-3)))
+
 (define-public sumo
   (package
     (name "sumo")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 0/6] Add CommonRoad
@ 2022-12-03  9:50 Liliana Marie Prikler
  2022-12-03  9:29 ` [bug#59798] [PATCH 1/6] gnu: Add java-antlr4-runtime-python Liliana Marie Prikler
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2022-12-03  9:50 UTC (permalink / raw)
  To: 59798

Self-driving car go vroom vroom.

Liliana Marie Prikler (6):
  gnu: Add java-antlr4-runtime-python.
  gnu: Add python-omegaconf.
  gnu: python-iso3166: Update to 2.1.1.
  gnu: Add python-commonroad-vehicle-models.
  gnu: Add python-commonroad-io.
  gnu: Add python-commonroad-route-planner.

 gnu/packages/iso-codes.scm  |   4 +-
 gnu/packages/java.scm       |  21 ++++++++
 gnu/packages/python-xyz.scm |  41 ++++++++++++++
 gnu/packages/simulation.scm | 104 ++++++++++++++++++++++++++++++++++++
 4 files changed, 168 insertions(+), 2 deletions(-)


base-commit: 9e9204958d3e0ecfe8fd024d8f06068b84f52ba1
-- 
2.38.1





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 0/6] Add CommonRoad
  2022-12-03  9:50 [bug#59798] [PATCH 0/6] Add CommonRoad Liliana Marie Prikler
                   ` (5 preceding siblings ...)
  2022-12-03  9:43 ` [bug#59798] [PATCH 6/6] gnu: Add python-commonroad-route-planner Liliana Marie Prikler
@ 2023-01-08 14:31 ` Ludovic Courtès
  6 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2023-01-08 14:31 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 59798

Hi Liliana,

Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:

>   gnu: Add java-antlr4-runtime-python.
>   gnu: Add python-omegaconf.
>   gnu: python-iso3166: Update to 2.1.1.
>   gnu: Add python-commonroad-vehicle-models.
>   gnu: Add python-commonroad-io.
>   gnu: Add python-commonroad-route-planner.

Qa.guix is happy and it LGTM as well.  Go for it!

Ludo’.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#59798] [PATCH 0/6] Add CommonRoad
  2022-12-03  9:43 ` [bug#59798] [PATCH 5/6] gnu: Add python-commonroad-io Liliana Marie Prikler
@ 2023-01-08 14:32   ` Ludovic Courtès
  2023-01-08 16:09     ` bug#59798: " Liliana Marie Prikler
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2023-01-08 14:32 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 59798

Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:

> +    (home-page "https://commonroad.in.tum.de/")
> +    (synopsis "Read, write, and visualize CommonRoad scenarios.")
> +    (description "This package provides methods to read, write, and visualize
> +CommonRoad scenarios and planning problems.  It can be used as a framework for
> +implementing motion planning algorithms to solve CommonRoad Benchmarks
> +and is the basis for other tools of the CommonRoad Framework")
                                                               ^
Missing period here.  :-)




^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#59798: [PATCH 0/6] Add CommonRoad
  2023-01-08 14:32   ` [bug#59798] [PATCH 0/6] Add CommonRoad Ludovic Courtès
@ 2023-01-08 16:09     ` Liliana Marie Prikler
  0 siblings, 0 replies; 10+ messages in thread
From: Liliana Marie Prikler @ 2023-01-08 16:09 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 59798-done

Am Sonntag, dem 08.01.2023 um 15:32 +0100 schrieb Ludovic Courtès:
> Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:
> 
> > +    (home-page "https://commonroad.in.tum.de/")
> > +    (synopsis "Read, write, and visualize CommonRoad scenarios.")
> > +    (description "This package provides methods to read, write,
> > and visualize
> > +CommonRoad scenarios and planning problems.  It can be used as a
> > framework for
> > +implementing motion planning algorithms to solve CommonRoad
> > Benchmarks
> > +and is the basis for other tools of the CommonRoad Framework")
>                                                                ^
> Missing period here.  :-)
Pushed with the missing period inserted.

Thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-01-08 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [bug#59798] [PATCH 2/6] gnu: Add python-omegaconf Liliana Marie Prikler
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

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).