From patchwork Sun Apr 25 03:26:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28863 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 75D8E27BC7D; Sun, 25 Apr 2021 04:27:18 +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_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 28D9127BC7C for ; Sun, 25 Apr 2021 04:27:18 +0100 (BST) Received: from localhost ([::1]:59680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laVQT-0006Sk-Dl for patchwork@mira.cbaines.net; Sat, 24 Apr 2021 23:27:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laVQF-0006GJ-9O for guix-patches@gnu.org; Sat, 24 Apr 2021 23:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laVQF-0002GZ-19 for guix-patches@gnu.org; Sat, 24 Apr 2021 23:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laVQE-00028j-U6 for guix-patches@gnu.org; Sat, 24 Apr 2021 23:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47976] [PATCH v2 02/10] gnu: Add python-pyqtgraph. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Apr 2021 03:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47976@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47976-submit@debbugs.gnu.org id=B47976.16193212148168 (code B ref 47976); Sun, 25 Apr 2021 03:27:02 +0000 Received: (at 47976) by debbugs.gnu.org; 25 Apr 2021 03:26:54 +0000 Received: from localhost ([127.0.0.1]:41794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laVQ6-00027f-Fl for submit@debbugs.gnu.org; Sat, 24 Apr 2021 23:26:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laVQ4-000275-7D for 47976@debbugs.gnu.org; Sat, 24 Apr 2021 23:26:53 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 39CEB240026 for <47976@debbugs.gnu.org>; Sun, 25 Apr 2021 05:26:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619321206; bh=pfbpTQWYtFhEZpA+fJUwtG3+quRG/krzDSSGNsLSZSs=; h=From:To:Cc:Subject:Date:From; b=JeI8n9A4uMXGXpGZEGUbvPWd0lS46Mz1BudV0EP3jz8spDBsIOTeUDprYp+ZuB3XB SRDmdmALybdgUkMS7efPWq1TqtNohvSblCyajDc4PEwcZFY7IcPUTw1FSoRe4qiypT 4uq44F5MXkp6WQUGbp2fle5LX4Z207XcnqH8W/qACmEmGfbTjiY2y9sJd4Gs/oL8rr CZ1Jdb7SwVoPXbveFp586fiJRpZppBwEuH7dnGE6Vvda925Nl+7dPY8FYrOIbwRJmp lSIkA8kpOVuQuQ1FQ1+VbuWllG58aqnrUX+geXmN5z+mpDzvJyaXbT5xR5o21nkmCX 1e6AP4uXYke/Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FSYNN5K9Zz9rxB; Sun, 25 Apr 2021 05:26:44 +0200 (CEST) From: Vinicius Monego Date: Sun, 25 Apr 2021 03:26:00 +0000 Message-Id: <20210425032608.124210-2-monego@posteo.net> In-Reply-To: <20210425032608.124210-1-monego@posteo.net> References: <20210425032608.124210-1-monego@posteo.net> 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/python-xyz.scm (python-pyqtgraph): New variable. --- Changed casing in synopsis. gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7366dd190c..9bd78986bd 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12421,6 +12421,58 @@ ISO 8859, etc.).") (description "AnyQt is a PyQt4/PyQt5 compatibility layer.") (license license:gpl3))) +(define-public python-pyqtgraph + (package + (name "python-pyqtgraph") + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyqtgraph" version)) + (sha256 + (base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'set-home-and-qpa + (lambda _ + (setenv "HOME" "/tmp") + (setenv "QT_QPA_PLATFORM" "offscreen") + #t)) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "-k" + ;; These tests try to download online data. + (string-append "not test_PolyLineROI" + " and not test_getArrayRegion_axisorder" + " and not test_getArrayRegion" + " and not test_PlotCurveItem" + " and not test_NonUniformImage_colormap" + " and not test_NonUniformImage_lut" + " and not test_ImageItem_axisorder" + " and not test_ImageItem"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-xdist" ,python-pytest-xdist))) + (inputs + `(("qtbase" ,qtbase))) + (propagated-inputs + `(("python-h5py" ,python-h5py) + ("python-numpy" ,python-numpy) + ("python-pyopengl" ,python-pyopengl) + ("python-scipy" ,python-scipy) + ("python-pyqt" ,python-pyqt))) + (home-page "http://www.pyqtgraph.org") + (synopsis "Scientific graphics and GUI library for Python") + (description + "PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2 +and PySide6. It is intended for use in mathematics, scientific or engineering +applications.") + (license license:expat))) + (define-public python-editor (package (name "python-editor")