From patchwork Sat Oct 17 10:35:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malte Frank Gerdes X-Patchwork-Id: 24663 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 273E027BBED; Sat, 17 Oct 2020 11:37:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 82BB927BBF0 for ; Sat, 17 Oct 2020 11:37:13 +0100 (BST) Received: from localhost ([::1]:34340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTjaK-0004T1-Hs for patchwork@mira.cbaines.net; Sat, 17 Oct 2020 06:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTjaC-0004Pk-9u for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTjaB-00066M-V0 for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTjaB-0007zc-SZ for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44045] [PATCH 04/10] gnu: Add uranium. Resent-From: Malte Frank Gerdes Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Oct 2020 10:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44045@debbugs.gnu.org Cc: Malte Frank Gerdes Received: via spool by 44045-submit@debbugs.gnu.org id=B44045.160293097930601 (code B ref 44045); Sat, 17 Oct 2020 10:37:03 +0000 Received: (at 44045) by debbugs.gnu.org; 17 Oct 2020 10:36:19 +0000 Received: from localhost ([127.0.0.1]:33518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZT-0007xO-6v for submit@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:19 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:39373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZN-0007vz-GI for 44045@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:14 -0400 Received: by mail-ej1-f45.google.com with SMTP id lw21so7089362ejb.6 for <44045@debbugs.gnu.org>; Sat, 17 Oct 2020 03:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hjn3IrqPKWFSER2kgv7a3BP7euyAefvVBmB9godn89o=; b=vgT6ASWS+4DCcCc2fmTW6AtCp78ootZMGc7dErgn/7NlFwrw/vMysJFw/D0V4kxLRb aYarA+h/5wo2cSQK8YcvFNU7D58ng/mhK5hySEZa96UDQMZbAk+tmJvqz/Bmvd4CnEFv TPN7/38dh2BL4qekoA5mgVmt5AMqhvWV7esvaquAT9CoMKaHHkVoZ1VEz5a20Pyy/4Bp Rt3EtAZ5ug6uIorL8zQHAx8G1XrRzlnoOB+/sfizagn7u2+hXN/OGp0m6t9bNEqtjFSj kggNwuk2GRjllXvXo/Um9icwzcsEh1Esjk6zAffB9paU44AwDWoze1uNF2NPmtM+cRyj MFEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hjn3IrqPKWFSER2kgv7a3BP7euyAefvVBmB9godn89o=; b=kBDrhXGJ5O3wKu2XfLM5+d6Cw4qh67YI5YBAYt53loOdqjtCWoVe9evullKKAzlW6u QWbmyKQrmdbjagMZh168dcryreAK1IuTxXn/+0k2JnJc4Ga6Yz8rX4bUqxY6/3/G0kfo jse/gs8rHvlCy3jOufuSHxZYSzRnxZTcCeUEmCXYLzao4o9u8UQHHvTzJt1KXG4sA9ly 8Uvn8sJiAHka2p3uM08fKiC4RKiBCf00gIenqGfQNoT/EaWp5LfqNb4Cfc29902SKBBL 8CzCwMwn5M2V937u4c85PHWSEV3qeVj5mvNsDEGNZbJ3L8ZPJlXJFw/un/DeY39owg2W JHUQ== X-Gm-Message-State: AOAM533GpuxtArQtjREu7JyxcMGJFZs/SzsaEEQwcO2dvyMhbdS5TZNL U9RCvFuxMp2TM2/OfiDBwjsovn3Re/hqsg== X-Google-Smtp-Source: ABdhPJzwJDa7SNbS1/Us5anz+nCa80xRLHLQBkDq5vWMXjiSyqZZCdoBM83N3mpGewp2vMhp7OW7Aw== X-Received: by 2002:a17:906:eb59:: with SMTP id mc25mr8026820ejb.34.1602930967530; Sat, 17 Oct 2020 03:36:07 -0700 (PDT) Received: from Morphium.intus (ip-84-118-73-55.unity-media.net. [84.118.73.55]) by smtp.gmail.com with ESMTPSA id cz11sm4794679edb.62.2020.10.17.03.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Oct 2020 03:36:06 -0700 (PDT) From: Malte Frank Gerdes Date: Sat, 17 Oct 2020 12:35:41 +0200 Message-Id: <20201017103547.13769-4-malte.f.gerdes@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201017103547.13769-1-malte.f.gerdes@gmail.com> References: <20201017103547.13769-1-malte.f.gerdes@gmail.com> MIME-Version: 1.0 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/engineering.scm (uranium): New variable. --- gnu/packages/engineering.scm | 68 ++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index e36abe0dbd..1b4cb391b3 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -104,6 +104,10 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) + #:use-module (gnu packages python-check) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-science) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) @@ -2941,3 +2945,67 @@ Cura.") translations. Prebuilt Firmware files are removed.") (license license:agpl3))) +(define-public uranium + (package + (name "uranium") + (version "4.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ultimaker/Uranium") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h5d3scy3cnbyhh0pbavflpqklhn2lbp7hl193rc5gx8yzr3mqbh")))) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("pytest" ,python-pytest) + ("mypy" ,python-mypy) + ("certifi" ,python-certifi) + ("twisted" ,python-twisted) + ("doxygen" ,doxygen) + ("graphviz" ,graphviz) + ("gettext" ,gettext-minimal))) + (propagated-inputs + `(("cura-binary-data" ,cura-binary-data) + ("qtbase" ,qtbase) + ("qtdeclarative" ,qtdeclarative) + ("qtcontrols2" ,qtquickcontrols2) + ("qtcontrols" ,qtquickcontrols) + ("qtgraphicaleffects" ,qtgraphicaleffects) + ("pyQt5" ,python-pyqt) + ("numpy" ,python-numpy) + ("arcus" ,libArcus) + ("shapely" ,python-shapely) + ("scipy" ,python-scipy) + ("python" ,python) + ("cryptography" ,python-cryptography) + ;; ("trimesh" ,python-trimesh) + )) + (arguments + `(#:tests? #false ;; tests are disabled, because they cause an infinite loop + #:configure-flags + `(,(string-append "-DGETTEXT_MSGINIT_EXECUTABLE=" + (assoc-ref %build-inputs "gettext") "/bin/msginit") + ,(string-append "-DCURA_BINARY_DATA_DIRECTORY=" + (assoc-ref %build-inputs "cura-binary-data"))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-uranium-plugin-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "UM/Application.py" + (("app_root =.*$") + (string-append "app_root = \"" + (assoc-ref outputs "out") "\"\n")) + (("app_root, \"share\", \"uranium\", \"plugins\"") + "app_root, \"lib\", \"uranium\", \"plugins\"")) + #true))))) + (home-page "https://github.com/Ultimaker/Uranium") + (synopsis "Python Framework for building Desktop applications") + (description "Uranium is a Python Framework for building 3D Printing +related Desktop Applications using PyQt5. It belongs to the Cura project +from Ultimaker.") + (license license:lgpl3))) +