From e5dacef22d499a7e75636862de1774cc46ae65f3 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Fri, 13 Feb 2026 11:26:45 +0000 Subject: [PATCH] gnu: Add python-qtawesome. * gnu/packages/python-graphics.scm (python-qtawesome): New variable. Change-Id: I75596aeb7352fb03ecfa34bbef6c5901edd5e180 --- gnu/packages/python-graphics.scm | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm index 86a12874d4..d9c87a5c9a 100644 --- a/gnu/packages/python-graphics.scm +++ b/gnu/packages/python-graphics.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) @@ -805,6 +806,38 @@ ctypes module to interface with SDL2, and provides simple Python classes and wrappers for common SDL2 functionality.") (license license:cc0))) +(define-public python-qtawesome + (package + (name "python-qtawesome") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spyder-ide/qtawesome") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "109anjlnin5cafx579clj1x21ggig3qkcm2g1wlx0lshxqzjadan")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Actually just ::test_get_fonts_info would be better. + #~(list "--ignore" "qtawesome/tests/test_qtawesome.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'setenv + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen")))))) + (propagated-inputs (list python-qtpy python-pyqt)) + (native-inputs (list python-pytest python-pytest-qt python-setuptools)) + (home-page "https://github.com/spyder-ide/qtawesome") + (synopsis "FontAwesome icons in PyQt and PySide applications") + (description + "@code{FontAwesome} icons in @code{PyQt} and @code{PySide} applications.") + (license license:expat))) + (define-public python-vispy (package (name "python-vispy")