[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/45: gnu: Add python-vispy.
From: |
guix-commits |
Subject: |
07/45: gnu: Add python-vispy. |
Date: |
Sat, 30 Nov 2024 10:16:34 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 8df2acd5fe5d311d64abb8011f22d663a4be2508
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Nov 2 23:34:29 2024 +0000
gnu: Add python-vispy.
* 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 @@
#: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 @@ Joysticks, OpenGL graphics, loading images and videos,
playing sounds and
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.
- 22/45: gnu: python-astroalign: Update to 2.6.1., (continued)
- 22/45: gnu: python-astroalign: Update to 2.6.1., guix-commits, 2024/11/30
- 24/45: gnu: python-astrodendro: Fix indentation., guix-commits, 2024/11/30
- 18/45: gnu: python-drizzle: Update to 2.0.0., guix-commits, 2024/11/30
- 25/45: gnu: python-cdflib: Update to 1.3.2., guix-commits, 2024/11/30
- 38/45: gnu: python-statmorph: Update to 0.6.0., guix-commits, 2024/11/30
- 30/45: gnu: python-pyvo: Update to 1.6., guix-commits, 2024/11/30
- 42/45: gnu: python-synphot: Update to 1.5.0., guix-commits, 2024/11/30
- 32/45: gnu: python-regularizepsf: Update to 1.0.2., guix-commits, 2024/11/30
- 44/45: gnu: python-yt-astro-analysis: Adjust inputs., guix-commits, 2024/11/30
- 01/45: gnu: Add julia-astroangles., guix-commits, 2024/11/30
- 07/45: gnu: Add python-vispy.,
guix-commits <=
- 12/45: gnu: libpasastro: Update to 1.4.3., guix-commits, 2024/11/30
- 11/45: gnu: imppg: Update to 1.9.2-beta., guix-commits, 2024/11/30
- 09/45: gnu: gpredict: Update commentary note., guix-commits, 2024/11/30
- 15/45: gnu: python-astropy: Update to 6.1.6., guix-commits, 2024/11/30
- 19/45: gnu: Add python-puremagic., guix-commits, 2024/11/30
- 16/45: gnu: python-bayesicfitting: Update to 3.2.2., guix-commits, 2024/11/30
- 20/45: gnu: python-ginga: Update to 5.2.0., guix-commits, 2024/11/30
- 26/45: gnu: python-jwst: Update to 1.16.1., guix-commits, 2024/11/30
- 33/45: gnu: python-reproject: Update to 0.14.1., guix-commits, 2024/11/30
- 27/45: gnu: python-ndcube: Update to 2.2.4., guix-commits, 2024/11/30