From patchwork Fri Jan 28 14:39:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 36868 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A655A27BBEA; Fri, 28 Jan 2022 20:26:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 299BB27BBE9 for ; Fri, 28 Jan 2022 20:26:13 +0000 (GMT) Received: from localhost ([::1]:34684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDXox-0004yB-VB for patchwork@mira.cbaines.net; Fri, 28 Jan 2022 15:26:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDXNy-0005pW-Jy for guix-patches@gnu.org; Fri, 28 Jan 2022 14:58:18 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDXNi-0004fr-Bc for guix-patches@gnu.org; Fri, 28 Jan 2022 14:58:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDXNi-00056j-69 for guix-patches@gnu.org; Fri, 28 Jan 2022 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53615] [PATCH] gnu: Add sumo. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Jan 2022 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53615@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164339987019605 (code B ref -1); Fri, 28 Jan 2022 19:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2022 19:57:50 +0000 Received: from localhost ([127.0.0.1]:60566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDXNV-000569-IP for submit@debbugs.gnu.org; Fri, 28 Jan 2022 14:57:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:32952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDXNU-000562-4g for submit@debbugs.gnu.org; Fri, 28 Jan 2022 14:57:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDXNR-0005Qw-2q for guix-patches@gnu.org; Fri, 28 Jan 2022 14:57:47 -0500 Received: from [2a00:1450:4864:20::341] (port=52756 helo=mail-wm1-x341.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDXNP-0004eg-0s for guix-patches@gnu.org; Fri, 28 Jan 2022 14:57:44 -0500 Received: by mail-wm1-x341.google.com with SMTP id v123so5269359wme.2 for ; Fri, 28 Jan 2022 11:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:content-transfer-encoding:message-id :mime-version; bh=0NkwUUUAuaMrvYoF8CpbqKiHGmuilznlwbH71w6oYGo=; b=hTEOH7B0Dc/+EaXJty63FsksbmRTo/akXokujvPAc2a/h2YAba/vbsg99Ow1uIdBpC zALmf8ptFPOo9OQGW2j9g8T7pBQpBo7Z9WCOSDNtoJMvuvN1gjUBWegx/jZtSIYoN7EC QVikmFHtdOEfDEsSi0+K8yBvrJorJ4p6Zrxvd7oVFJ+2UQhnu+NNlRQCoZYjUxbilcFg r3WHfhJ7a8y58i8wb80W5ePEkTr4r4ZaJObnghEh6Do02+8YKdv9k0d4j4IeD0qKXunN CaWAwAQ1+Pcf/b1oglr/iTdifdiINyTTII9t/aJg+A+wlXbH9a+CdEMxEoCQ6PZ9owM2 Ul3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:content-transfer-encoding :message-id:mime-version; bh=0NkwUUUAuaMrvYoF8CpbqKiHGmuilznlwbH71w6oYGo=; b=NVJedCfuHFUPBMpffRqZ+WrH6YccmlB5237C8tSspKcXrGbY3Ph65P5pJ29Ih7yeyA JuyrBXA+G/kXKjv0V4k29aEHJPm2RTYHsL/6VzKn5Y0n+RctomILjX3PPuhihmP83IsY qUUHgKoJS9PaK18DYl6V4CtUbkHlt+jTWB0pnY0RioGP/7Dvwmn9T2aygvzj92BSzY0e v3Ilej0WC/SucnQ+mdZCFkVmsUMpqPfb7pFDWpXnY4nd82bNx9aOu0tWKKCFQ/ryefzV QLOuHoVC5D/xA/vr2Rd1aXpUgoJ0JShu50KMHwCNYuLKEX3MFaw45QOuiYG0XHJMLY0H 9FeQ== X-Gm-Message-State: AOAM532H0+GeLHi0m7KSGvHHzXN7GLiv292mgIQz1Ib2WpV3GilTTxC5 ts/B0q11gOiWbdw8x88lX9cV7QUkRoM= X-Google-Smtp-Source: ABdhPJysTbNO95+2rzH/0vbTBWeGlmLO79RC1f53+wniBEMpB/jwhgwJ7ZL9s/Ij96a53dypN8zR2Q== X-Received: by 2002:a05:600c:5014:: with SMTP id n20mr8862325wmr.46.1643399858039; Fri, 28 Jan 2022 11:57:38 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id g6sm5224568wrq.97.2022.01.28.11.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 11:57:37 -0800 (PST) From: Liliana Marie Prikler Date: Fri, 28 Jan 2022 15:39:23 +0100 Message-ID: MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::341 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=liliana.prikler@gmail.com; helo=mail-wm1-x341.google.com X-Spam_score_int: 32 X-Spam_score: 3.2 X-Spam_bar: +++ X-Spam_report: (3.2 / 5.0 requ) DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, PP_MIME_FAKE_ASCII_TEXT=0.998, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/simulation.scm (sumo): New variable. --- gnu/packages/simulation.scm | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 240549be47..454cebcd6c 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Paul Garlick ;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2022 Liliana Marie Prikler ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,12 +29,16 @@ (define-module (gnu packages simulation) #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages flex) + #:use-module (gnu packages fontutils) #:use-module (gnu packages gettext) #:use-module (gnu packages gcc) + #:use-module (gnu packages geo) #:use-module (gnu packages gl) #:use-module (gnu packages graphics) #:use-module (gnu packages gtk) + #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages m4) #:use-module (gnu packages maths) @@ -48,6 +53,7 @@ (define-module (gnu packages simulation) #:use-module (gnu packages readline) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) + #:use-module (gnu packages video) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix download) @@ -58,6 +64,7 @@ (define-module (gnu packages simulation) #:use-module (guix build-system python) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module (ice-9 ftw) #:use-module (ice-9 regex) @@ -945,3 +952,65 @@ (define-public python-dolfin-adjoint forward model is implemented in @code{fenics} or @url{https://firedrakeproject.org,firedrake}.") (license license:lgpl3))) + +(define-public sumo + (package + (name "sumo") + (version "1.12.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eclipse/sumo") + (commit (string-append "v" + (string-replace-substring version + "." "_"))))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "095252n2gpmrrzvr76mwx6j95frgvasfhya5br9xb0xs70blzzki")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-problematic-tests + (lambda _ + (substitute* "CMakeLists.txt" + ;; docs/example appears to be missing + (("add_test\\(exampletest .*") "")) + (substitute* "src/traci_testclient/CMakeLists.txt" + ;; requires network connection (at least to localhost) + (("add_test\\(NAME libtracitest .*") ""))))))) + (inputs (list eigen + freetype + fontconfig + ffmpeg + fox + gdal + glu + gperftools ; tcmalloc + libjpeg-turbo + libtiff + libx11 + libxcursor + libxft + libxi + libxrandr + libxrender + openscenegraph + proj + python + xerces-c + zlib)) + (native-inputs (list googletest python)) + (home-page "https://eclipse.org/sumo") + (synopsis "Traffic simulator") + (description "Simulation of Urban MObility (SUMO) is a traffic simulation +package designed to handle large road networks and different modes of +transportation -- including road vehicles, public transport and pedestrians. +Included with SUMO is a wealth of supporting tools which automate core tasks +for the creation, the execution and evaluation of traffic simulations, +such as network import, route calculations, visualization and emission +calculation. SUMO can be enhanced with custom models and provides various +APIs to remotely control the simulation.") + (license (list license:epl2.0 license:gpl2+))))