summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2022-12-03 10:40:08 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-01-08 16:27:59 +0100
commit59a8de6bad856ee012cd6bc8aaf4d929a6c8e619 (patch)
tree5d64eabedb486765ab20b9869cdfba94b1485508
parent583a197b00c4c274a83a6c236430b6d1032da5b0 (diff)
gnu: Add python-commonroad-vehicle-models.
* gnu/packages/simulation.scm (%commonroad-dont-install-license-at-root) (python-commonroad-vehicle-models): New variables.
-rw-r--r--gnu/packages/simulation.scm30
1 files changed, 30 insertions, 0 deletions
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 @@ forward model is implemented in @code{fenics} or
@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")