* [bug#55308] [PATCH 0/2] Packaging kivymd
@ 2022-05-08 1:38 Ryan Prior via Guix-patches via
2022-05-08 1:45 ` [bug#55308] [PATCH 1/2] gnu: python-kivy: Update to 2.1.0 Ryan Prior via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Prior via Guix-patches via @ 2022-05-08 1:38 UTC (permalink / raw)
To: 55308
The kivymd package requires a major version bump of our python-kivy package, so I had to tweak a few things around. Hopefully that should not be disruptive; kivy doesn't have many dependencies in Guix. I tested that this kivy+kivymd work in practice, even though neither of their tests run in Guix due to heavy requirements.
Ryan Prior (2):
gnu: python-kivy: Update to 2.1.0.
gnu: Add python-kivymd.
gnu/packages/python-xyz.scm | 34 +++++++++++++++++++++++++++++++---
1 file changed, 31 insertions(+), 3 deletions(-)
--
2.36.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#55308] [PATCH 1/2] gnu: python-kivy: Update to 2.1.0.
2022-05-08 1:38 [bug#55308] [PATCH 0/2] Packaging kivymd Ryan Prior via Guix-patches via
@ 2022-05-08 1:45 ` Ryan Prior via Guix-patches via
2022-05-08 1:45 ` [bug#55308] [PATCH 2/2] gnu: Add python-kivymd Ryan Prior via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Prior via Guix-patches via @ 2022-05-08 1:45 UTC (permalink / raw)
To: 55308
* gnu/packages/python-xyz.scm (python-kivy): Update to 2.1.0.
---
gnu/packages/python-xyz.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2861593edb..1ac2d67da9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17514,7 +17514,7 @@ (define-public python-kivy-garden
(define-public python-kivy
(package
(name "python-kivy")
- (version "1.10.1")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
@@ -17522,7 +17522,7 @@ (define-public python-kivy
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
+ "1cq4djfn7h8560mvz94dydsldg2jpp5w9rby7nafgmbh7fxg65is"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Tests require many optional packages
@@ -17532,7 +17532,7 @@ (define-public python-kivy
(lambda* (#:key inputs #:allow-other-keys)
(setenv "KIVY_SDL2_PATH"
(search-input-directory inputs "/include/SDL2"))))
- (add-before 'sanity-check 'set-home
+ (add-before 'build 'set-home
(lambda _
;; 'kivy/__init__.py' wants to create $HOME/.kivy.
(setenv "HOME" (getcwd)))))))
--
2.36.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#55308] [PATCH 2/2] gnu: Add python-kivymd.
2022-05-08 1:45 ` [bug#55308] [PATCH 1/2] gnu: python-kivy: Update to 2.1.0 Ryan Prior via Guix-patches via
@ 2022-05-08 1:45 ` Ryan Prior via Guix-patches via
2022-05-20 18:13 ` bug#55308: [PATCH 0/2] Packaging kivymd Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Prior via Guix-patches via @ 2022-05-08 1:45 UTC (permalink / raw)
To: 55308
* gnu/packages/python-xyz.scm (python-kivymd): New symbol.
---
gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
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))
--
2.36.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#55308: [PATCH 0/2] Packaging kivymd
2022-05-08 1:45 ` [bug#55308] [PATCH 2/2] gnu: Add python-kivymd Ryan Prior via Guix-patches via
@ 2022-05-20 18:13 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-05-20 18:13 UTC (permalink / raw)
To: Ryan Prior; +Cc: 55308-done
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
Hello,
Ryan Prior <rprior@protonmail.com> skribis:
> * gnu/packages/python-xyz.scm (python-kivymd): New symbol.
Applied both patches, with the changes below on this one (suggested by
‘guix lint’).
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1381 bytes --]
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 19daf8cd05..b8fd857fd6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18682,17 +18682,18 @@ (define-public python-kivymd
(base32 "04lwy6j0agrdwa4a6dl6qs97nx9ysmscmm8psvdzjpyj8aa1zg4p"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f
+ `(#:tests? #f ;tests require network
#: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
+ (setenv "HOME" (getcwd)))))))
+ (native-inputs (list python-docutils))
(propagated-inputs
- (list python-kivy python-pillow python-pygments python-docutils python-kivy-garden))
+ (list python-kivy python-pillow python-pygments python-kivy-garden))
(home-page "https://github.com/kivymd/KivyMD")
- (synopsis "A collection of Material Design compliant widgets for use with Kivy")
+ (synopsis "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.")
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-20 18:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-08 1:38 [bug#55308] [PATCH 0/2] Packaging kivymd Ryan Prior via Guix-patches via
2022-05-08 1:45 ` [bug#55308] [PATCH 1/2] gnu: python-kivy: Update to 2.1.0 Ryan Prior via Guix-patches via
2022-05-08 1:45 ` [bug#55308] [PATCH 2/2] gnu: Add python-kivymd Ryan Prior via Guix-patches via
2022-05-20 18:13 ` bug#55308: [PATCH 0/2] Packaging kivymd Ludovic Courtès
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.