From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UDFZEbWOOF9zOQAA0tVLHw (envelope-from ) for ; Sun, 16 Aug 2020 01:41:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8PcUDbWOOF+6WwAAbx9fmQ (envelope-from ) for ; Sun, 16 Aug 2020 01:41:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D02C94028F for ; Sun, 16 Aug 2020 01:41:08 +0000 (UTC) Received: from localhost ([::1]:36200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k77fW-0004te-Ap for larch@yhetil.org; Sat, 15 Aug 2020 21:41:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k77fS-0004tU-9R for guix-patches@gnu.org; Sat, 15 Aug 2020 21:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k77fR-0005l5-Va for guix-patches@gnu.org; Sat, 15 Aug 2020 21:41:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k77fR-000151-SV for guix-patches@gnu.org; Sat, 15 Aug 2020 21:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42877] [PATCH] gnu: Add veusz. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 01:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42877 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42877@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15975420054070 (code B ref -1); Sun, 16 Aug 2020 01:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2020 01:40:05 +0000 Received: from localhost ([127.0.0.1]:56616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k77eX-00013Z-3W for submit@debbugs.gnu.org; Sat, 15 Aug 2020 21:40:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:38654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k77eS-000132-Pi for submit@debbugs.gnu.org; Sat, 15 Aug 2020 21:40:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k77eS-0004kq-9D for guix-patches@gnu.org; Sat, 15 Aug 2020 21:40:00 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k77eP-0005Xo-NQ for guix-patches@gnu.org; Sat, 15 Aug 2020 21:39:59 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 58FD116005C for ; Sun, 16 Aug 2020 03:39:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1597541994; bh=D5uyacLVNoTmM6fdJ7luybE/liJVCERpy7ik+3skv8o=; h=From:To:Cc:Subject:Date:From; b=Ie6H3J0LJFkGDnFxF4yEZJ12uPmMtjOgYlBMXwINYN/a7/ZPraykLAgmHEAIMXAIG U3QIjgOUpDYE+MBTL6gZ5egj5tTdcuXuyCcaP3CvkkPWqdsAustnj3f/lbg2fF6dbx hLcshzvHt34dqg2h4HLUb/AnJ5h3AZb/VQxdVGDnnvhDGGYVIRL+FdisRo2ZUrfvZE ZF+EXM1/Ez2HNUHy1EtCCvHumcV8AxI5nD2CclGzO/rogjAskA2kOYGaI6uDpufVlY qJskD+ol8l7kVbd0bO426GlxAF1qQy8wOse1jPcj/RK4cTcPhXX84yE1STayapVkXG BlsCEiKJccn8A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BTfxN48F6z9rxL; Sun, 16 Aug 2020 03:39:52 +0200 (CEST) From: Vinicius Monego Date: Sat, 15 Aug 2020 22:39:14 -0300 Message-Id: <20200816013914.6557-1-monego@posteo.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/15 21:39:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=Ie6H3J0L; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: /2NX6oAietuL * gnu/packages/maths.scm (veusz): New variable. --- gnu/packages/maths.scm | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3a746bd712..9b1a5b6a8d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2064,6 +2064,69 @@ modules is done either interactively using the graphical user interface or in ASCII text files using Gmsh's own scripting language.") (license license:gpl2+))) +(define-public veusz + (package + (name "veusz") + (version "3.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "veusz" version)) + (sha256 + (base32 "00vmfpvyd6f33l5awlf02qdik3gmbhzyfizfwwbx7qnam2i9bbwy")))) + (build-system python-build-system) + (arguments + `(;; Tests will fail because they depend on optional packages like + ;; python-astropy, which is not packaged. + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Veusz will append 'PyQt5' to sip_dir by default. That is not how + ;; the path is defined in Guix, therefore we have to change it. + (add-after 'unpack 'fix-sip-dir + (lambda _ + (substitute* "pyqtdistutils.py" + (("os.path.join\\(sip_dir, 'PyQt5'\\)") "sip_dir")) + #t)) + ;; Now we have to pass the correct sip_dir to setup.py. + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + ;; We need to tell setup.py where to locate QtCoremod.sip + ((@@ (guix build python-build-system) call-setuppy) + "build_ext" (list (string-append "--sip-dir=" + (assoc-ref inputs "python-pyqt") + "/share/sip")) + #t))) + ;; Ensure that icons are found at runtime. + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/veusz") + `("QT_PLUGIN_PATH" prefix + ,(list (string-append (assoc-ref inputs "qtsvg") + "/lib/qt5/plugins/")))))))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ;;("python-astropy" ,python-astropy) ;; FIXME: Package this. + ("qttools" ,qttools))) + (inputs + `(("ghostscript" ,ghostscript) ;optional, for EPS/PS output + ("python-dbus" ,python-dbus) + ("python-h5py" ,python-h5py) ;optional, for HDF5 data + ("python-pyqt" ,python-pyqt) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg))) + (propagated-inputs + `(("python-numpy" ,python-numpy))) + (home-page "https://veusz.github.io/") + (synopsis "Scientific plotting package") + (description + "Veusz is a scientific plotting and graphing program with a graphical user +interface, designed to produce publication-ready 2D and 3D plots. In addition +it can be used as a module in Python for plotting. It supports vector and +bitmap output, including PDF, Postscript, SVG and EMF.") + (license license:gpl2+))) + (define-public maxflow (package (name "maxflow") -- 2.20.1