diff mbox series

[bug#55308,2/2] gnu: Add python-kivymd.

Message ID 20220508014521.28894-2-rprior@protonmail.com
State New
Headers show
Series Packaging kivymd | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Ryan Prior May 8, 2022, 1:45 a.m. UTC
* gnu/packages/python-xyz.scm (python-kivymd): New symbol.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

--
2.36.0
diff mbox series

Patch

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1ac2d67da9..dd9d71b89b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17552,6 +17552,34 @@  (define-public python-kivy
 multitouch applications.")
     (license license:expat)))

+(define-public python-kivymd
+  (package
+    (name "python-kivymd")
+    (version "0.104.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kivymd" version))
+       (sha256
+        (base32 "04lwy6j0agrdwa4a6dl6qs97nx9ysmscmm8psvdzjpyj8aa1zg4p"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'sanity-check 'set-home
+           (lambda _
+             ;; 'kivy/__init__.py' wants to create $HOME/.kivy.
+             (setenv "HOME" (getcwd)))))))            ; Tests require network
+    (propagated-inputs
+     (list python-kivy python-pillow python-pygments python-docutils python-kivy-garden))
+    (home-page "https://github.com/kivymd/KivyMD")
+    (synopsis "A collection of Material Design compliant widgets for use with Kivy")
+    (description
+     "This package provides Kivy widgets that approximate Google's Material
+Design spec without sacrificing ease of use or application performance.")
+    (license license:expat)))
+
 (define-public python2-kivy
   (package-with-python2 python-kivy))