guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#47906] [PATCH 13/22] gnu: Add python-qtawesome.


From: Vinicius Monego
Subject: [bug#47906] [PATCH 13/22] gnu: Add python-qtawesome.
Date: Tue, 20 Apr 2021 05:22:37 +0000

* gnu/packages/python-xyz.scm (python-qtawesome): New variable.
---
 gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6e2ac8b87b..5c7fd02289 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11167,6 +11167,39 @@ for atomic file system operations.")
 the construction of PyQt/PySide stylesheets.")
     (license license:expat)))
 
+(define-public python-qtawesome
+  (package
+    (name "python-qtawesome")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "QtAwesome" version))
+       (sha256
+        (base32 "11yqvy9qajdkqxa6aisqs9b0nn0a67yr5s5l31yn83gmqiddj7bp"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:test-target "pytest"
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-qpa
+           (lambda _
+             (setenv "QT_QPA_PLATFORM" "offscreen")
+             #t)))))
+    (native-inputs
+     `(("python-pyqt" ,python-pyqt)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-qt" ,python-pytest-qt)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (propagated-inputs
+     `(("python-qtpy" ,python-qtpy)))
+    (home-page "https://github.com/spyder-ide/qtawesome";)
+    (synopsis "FontAwesome icons in PyQt and PySide applications")
+    (description
+     "QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in
+PyQt and PySide applications.")
+    (license license:expat)))
+
 (define-public python-click-threading
   (package
     (name "python-click-threading")
-- 
2.31.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]