From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sLIVACQ9QmfveAEAqHPOHw:P1 (envelope-from ) for ; Sat, 23 Nov 2024 20:37:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sLIVACQ9QmfveAEAqHPOHw (envelope-from ) for ; Sat, 23 Nov 2024 21:37:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FUw2mT8v; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K2abWwxD; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732394275; a=rsa-sha256; cv=none; b=IXIb3WuMlfRQKjgqRtH9w8GBgdgKjyhu03OFx6//JFc6bQUnHXMykPaxtobTjNxQqBIaPt fOBu4eYDsgTeUAhAB+nzcLYT5Rsp4kPAtwCSHvTBijBxV+v7WuIoCLuBcKVn58wMYfr60D QnCpzUciTak8v4Evr4b6SbhLc81+sCgk4OV/vwgJsQ6oeLzmfFoRXXsV7L2PhahIovS3w+ wldPoaBaOsmgGV2v0WVNYY3b1b4AxUnvs+pCuo0A6yx+NearU2z1oRPULGnS8EGUwj0ILJ 3y7CM2/3KCVAFIrOv6mjsU6wGof7TrVRdK1l5L73ztuEZX8XKU8QA6oXMoKTDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FUw2mT8v; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K2abWwxD; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732394275; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BxyHpWRz9SzHnqtIc8Cja6qHiejxb7DPn0tvHzM1DLY=; b=ZhbJoevuQT7KUxCReysHIwzmj/uuOfGe8wnoeYwbZ0BVUO8d+R2PjBUlsKPCUPlfV+eGTc 5a34OtHgO5BgTCwh4XwBB2xC0KUvJ6NDguJclglZRA1ZSBqBAjqk6gZjMaloYUdYlt/SOJ iM1YkNGE6FxKEcC6vIsDH/ZkJguLGYLM53OYh8DRQM2TZbeyLvEJIZsi+ZD4ukBjXJMp1m cAtkwLiisAm6llsYLOh4qhcthRIySPJVITPUletXtdvHSmXZPmrWEO024+3qTCSqyk1XiH Y37SQZY/9Jgkj/0l+JWEdOAFiC14PWIJUZcadmZ5uPA9waafUGA9DonsZfiY3Q== 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 8A97A62339 for ; Sat, 23 Nov 2024 21:37:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEwC3-0002jk-Qd; Sat, 23 Nov 2024 14:53:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEwBx-0002hN-7q for guix-patches@gnu.org; Sat, 23 Nov 2024 14:53:18 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEwBw-0000WB-Vm; Sat, 23 Nov 2024 14:53:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=BxyHpWRz9SzHnqtIc8Cja6qHiejxb7DPn0tvHzM1DLY=; b=FUw2mT8vhqdu00qkAafVgGd2QmXYkKyovO8s4UvHQ1oVOuPNsMi77VVESJZfJUXKP1CGM3jYgVEJdEuu+XSgb0gtDmMxDfGoJ1bWUAK6xuvnf3dUsxcJXN/Zr6jjdlMiKY+c+7MSAp4OEr4gw/bkbwbjkRLxyHSlce5U3dkbv89glltx1ySZ1tQmdWnyVDEb5bDM8/h1sy0MDCGz0BPXawUZpdsg6x45soVodrRSFwpxAeoJOdzjsqXtmQSW53WIX8tltLZSYyC1V3AWngjEX2b96XNxzIAxfC0Z0/KhsVVMgYsrNDypa/s1K2JDJcI632MN9ksa0XIu0cKzKmCF1A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEwBt-0002ab-9j; Sat, 23 Nov 2024 14:53:13 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74497] [PATCH 08/46] gnu: Add python-vispy. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sat, 23 Nov 2024 19:53:13 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74497@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 74497-submit@debbugs.gnu.org id=B74497.17323915899870 (code B ref 74497); Sat, 23 Nov 2024 19:53:13 +0000 Received: (at 74497) by debbugs.gnu.org; 23 Nov 2024 19:53:09 +0000 Received: from localhost ([127.0.0.1]:59278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEwBo-0002Ym-Bt for submit@debbugs.gnu.org; Sat, 23 Nov 2024 14:53:09 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:54662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEwBe-0002VY-Qn for 74497@debbugs.gnu.org; Sat, 23 Nov 2024 14:53:00 -0500 Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3823cf963f1so2016808f8f.1 for <74497@debbugs.gnu.org>; Sat, 23 Nov 2024 11:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732391513; x=1732996313; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BxyHpWRz9SzHnqtIc8Cja6qHiejxb7DPn0tvHzM1DLY=; b=K2abWwxD7R94PlW1bCoLZE6RXFfHK55YuQjfkxRD41phu5LkXd6i0nVoPjy9h2A8vw m2JtWrw9rLCYVwNl6dNLNUjzDes6oHRaGeLvqqZ7058Gr7xKcK+zFuu4VkV3CG3BZpbW +KPV/lBtLfwsOHBVVf9fLflF+rBT/bK0+N+DyNpa98YPDCj5g6QV7OM10k8XoBjGd27/ fnUqccc+9/SpIvjhrPPUhNG+3JhHLWnBN4XKL6dlCMOu3No1v3I0zOqzLDKOyBXPnn4D ZTlgzi/eC2GeCXe1CInoQhc6eaycpKXAd3Kd7se3rwo6BPIzYXrAFWFSznTm5lbVVjI+ BjNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732391513; x=1732996313; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BxyHpWRz9SzHnqtIc8Cja6qHiejxb7DPn0tvHzM1DLY=; b=SuYp4U8Kx6gMgVcIvuD8rTVN5DlTckUHeHuTcuSfp3aW6PhTttIULB8dgeR0LuYFmp 56MS6THKoDDaRGLWFaDomwc8NMEaCyAfe9u1K64ssGalGdE7bQn5dJVj8JE//0jrRXD8 HmuQKdhMQPrj7UVWvGtrIlEKndsN/FCzTFhgAHhcOwGNAvyTOp/yr0VFR9LWhzgG9hfA m10UenPULD7Z4Vz7pyqcKWFvXMMLgA7wVcRWgrI6+RcSkd7rKY5qx+l1z6BLcHB2cDlr rxAlQbBP9VFX/W2Lpf0BPJr7y3bW0+Sj4sbJAIFjV2nYllBUQi5O5WjWETBgPAKwA6ZC 8c5A== X-Gm-Message-State: AOJu0Yx6Hrk3QrymcIpfEKhFlkjtnNg0Fyrh99Ntxt0XTJLSQAR0OlDA Sq4+08+WvOIDyFpHH96AOXL2AIdhuF63tDUYleKFNuAhXb7673LU/hOy6pMZYNI= X-Gm-Gg: ASbGncsHVh9Zy4jpWl+Y2JMg81JrneFz/rxcxMK+1SOA0kvJUBqULSLG10nvpUU2TFk 4rT75Z+nCN05sV9kBU2cV7SatawePkYGXJWzVlvCeIy8AWked/lNB0b/EyTwGsxmwsakhMCiXy5 JW90pW1DC6NjMRTDBANuxOPkt0ucov0LRaqGaGEw8BFbqFCsJUQd6Mr0NHyKC83outuFffrs08T Hig1pnok91Q39TjqJ+uycysOSTQdgYAM5lyty8ZDL9dU95P6EnNvFvX1CWfs8pMzRpX1x38OeTS S9b3dhKzqktfUt0AozZQqe2LtfibWNQe0IRFqVzGLA== X-Google-Smtp-Source: AGHT+IFF8bUXr2OMNW3yoeI7Iw9MxSmn/aoI/VEEWgnBiwGXA+iUsVL0sJkoWNTfyTr80N+qFEuiNg== X-Received: by 2002:a5d:6da7:0:b0:374:fa0a:773c with SMTP id ffacd0b85a97d-38260bcc3demr6864167f8f.47.1732391512997; Sat, 23 Nov 2024 11:51:52 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fafe338sm5972894f8f.33.2024.11.23.11.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2024 11:51:52 -0800 (PST) From: Sharlatan Hellseher Date: Sat, 23 Nov 2024 19:50:55 +0000 Message-ID: <1c0016b6886251ca04defdbc93e1c8b1afe56ae7.1732384228.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.16 X-Spam-Score: 0.16 X-Migadu-Queue-Id: 8A97A62339 X-Migadu-Scanner: mx12.migadu.com X-TUID: sH+QVgEUvQnR * gnu/packages/python-graphics.scm (python-vispy): New variable. Change-Id: Icb648d621101e0f4b60ada8c0ebbd3a05eea6fb4 --- gnu/packages/python-graphics.scm | 74 +++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm index 403a3c3b34..bc0c93a8ee 100644 --- a/gnu/packages/python-graphics.scm +++ b/gnu/packages/python-graphics.scm @@ -16,15 +16,17 @@ (define-module (gnu packages python-graphics) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages audio) + #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages fontutils) #:use-module (gnu packages gl) - #:use-module (gnu packages base) #:use-module (gnu packages gtk) + #:use-module (gnu packages maths) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages simulation) #:use-module (gnu packages video) #:use-module (gnu packages xorg)) @@ -235,6 +237,76 @@ (define-public python-pyglet music." ) (license license:bsd-3))) +(define-public python-vispy + (package + (name "python-vispy") + (version "0.14.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "vispy" version)) + (sha256 + (base32 "07fkk4bdffn0iq5cprk7ydj978rqc4lvzfcs2vkzgfh8m53vifzg")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Test requiring network access to download test data from + ;; . + #~(list "-k" (string-append "not test_read_write_image" + " and not test_wavefront" + " and not test_config")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-library-path + (lambda _ + (substitute* (list "vispy/ext/egl.py" + "vispy/ext/fontconfig.py" + "vispy/gloo/gl/es2.py" + "vispy/gloo/gl/gl2.py") + (("ctypes\\.util\\.find_library\\('EGL'\\)") + (format #f "'~a/~a'" #$(this-package-input "mesa") + "lib/libEGL.so")) + (("ctypes\\.util\\.find_library\\('GL'\\)") + (format #f "'~a/~a'" #$(this-package-input "mesa") + "lib/libGL.so")) + (("ctypes\\.util\\.find_library\\('GLESv2'\\)") + (format #f "'~a/~a'" #$(this-package-input "mesa") + "lib/libGLESv2.so")) + (("util\\.find_library\\('fontconfig'\\)") + (format #f "'~a/~a'" #$(this-package-input "fontconfig-minimal") + "lib/libfontconfig.so"))))) + (add-before 'check 'prepare-test-environment + (lambda _ + ;; XXX: Check how to set DPI to run headless tests, fails when + ;; DISPLAY is set. + ;; E RuntimeError: could not determine DPI + (setenv "HOME" "/tmp") + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (native-inputs + (list python-cython-3 + python-pytest + python-setuptools + python-setuptools-scm)) + (inputs + (list fontconfig + mesa)) + (propagated-inputs + (list python-freetype-py + python-hsluv + python-kiwisolver + python-meshio + python-numpy + python-packaging + python-pillow)) + (home-page "http://vispy.org") + (synopsis "Interactive scientific visualization in Python") + (description + "VisPy is a high-performance interactive 2D/3D data visualization library +leveraging the computational power of modern Graphics Processing Units (GPUs) +through the OpenGL library to display very large datasets.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above in alphabetical order. -- 2.46.0