all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 74497@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	Tanguy Le Carrour <tanguy@bioneland.org>,
	jgart <jgart@dismail.de>
Subject: [bug#74497] [PATCH 08/46] gnu: Add python-vispy.
Date: Sat, 23 Nov 2024 19:50:55 +0000	[thread overview]
Message-ID: <1c0016b6886251ca04defdbc93e1c8b1afe56ae7.1732384228.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1732384228.git.sharlatanus@gmail.com>

* 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
+      ;; <https://raw.githubusercontent.com/vispy/demo-data/main/CONTRIBUTING.txt>.
+      #~(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





  parent reply	other threads:[~2024-11-23 20:37 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-23 19:48 [bug#74497] [PATCH 00/46] Astro update 2024/11 Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 01/46] gnu: Add cdf Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 02/46] gnu: Add julia-astroangles Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 03/46] gnu: Add python-kalepy Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 04/46] gnu: Add python-george Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 05/46] gnu: Add python-hasasia Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 06/46] gnu: Add python-cosmopy Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 07/46] gnu: Add python-holodeck Sharlatan Hellseher
2024-11-23 19:50 ` Sharlatan Hellseher [this message]
2024-11-23 19:50 ` [bug#74497] [PATCH 09/46] gnu: Add python-spisea Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 10/46] gnu: gpredict: Update commentary note Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 11/46] gnu: healpix-source: " Sharlatan Hellseher
2024-11-23 19:50 ` [bug#74497] [PATCH 12/46] gnu: imppg: Update to 1.9.2-beta Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 13/46] gnu: libpasastro: Update to 1.4.3 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 14/46] gnu: python-asdf-astropy: Update to 0.7.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 15/46] gnu: python-astropy-iers-data: Update to 0.2024.11.18.0.35.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 16/46] gnu: python-astropy: Update to 6.1.6 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 17/46] gnu: python-bayesicfitting: Update to 3.2.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 18/46] gnu: python-crds: Update to 12.0.6 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 19/46] gnu: python-drizzle: Update to 2.0.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 20/46] gnu: Add python-puremagic Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 21/46] gnu: python-ginga: Update to 5.2.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 22/46] gnu: python-aplpy: Update to 2.2.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 23/46] gnu: python-astroalign: Update to 2.6.1 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 24/46] gnu: python-astrodendro: Update to 0.3.1 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 25/46] gnu: python-astrodendro: Fix indentation Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 26/46] gnu: python-cdflib: Update to 1.3.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 27/46] gnu: python-jwst: Update to 1.16.1 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 28/46] gnu: python-ndcube: Update to 2.2.4 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 29/46] gnu: python-photutils: Update to 2.0.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 30/46] gnu: python-pyerfa: Update to 2.0.1.5 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 31/46] gnu: python-pyvo: Update to 1.6 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 32/46] gnu: python-rad: Update to 0.22.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 33/46] gnu: python-regularizepsf: Update to 1.0.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 34/46] gnu: python-reproject: Update to 0.14.1 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 35/46] gnu: python-roman-datamodels: Update to 0.22.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 36/46] gnu: python-sep-pjw: Update to 1.3.7 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 37/46] gnu: python-sncosmo: Update to 2.11.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 38/46] gnu: python-specutils: Update to 1.19.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 39/46] gnu: python-statmorph: Update to 0.6.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 40/46] gnu: python-stcal: Update to 1.10.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 41/46] gnu: python-stdatamodels: Update to 2.1.2 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 42/46] gnu: python-stsynphot: Update to 1.4.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 43/46] gnu: python-synphot: Update to 1.5.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 44/46] gnu: python-yt: Update to 4.4.0 Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 45/46] gnu: python-yt-astro-analysis: Adjust inputs Sharlatan Hellseher
2024-11-23 19:51 ` [bug#74497] [PATCH 46/46] gnu: python-gatspy: " Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c0016b6886251ca04defdbc93e1c8b1afe56ae7.1732384228.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=74497@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    --cc=tanguy@bioneland.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.