GNU bug report logs - #55308
[PATCH 0/2] Packaging kivymd

Previous Next

Package: guix-patches;

Reported by: Ryan Prior <rprior <at> protonmail.com>

Date: Sun, 8 May 2022 01:40:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55308 in the body.
You can then email your comments to 55308 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#55308; Package guix-patches. (Sun, 08 May 2022 01:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Prior <rprior <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 08 May 2022 01:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ryan Prior <rprior <at> protonmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] Packaging kivymd
Date: Sun, 08 May 2022 01:38:56 +0000
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






Information forwarded to guix-patches <at> gnu.org:
bug#55308; Package guix-patches. (Sun, 08 May 2022 01:46:01 GMT) Full text and rfc822 format available.

Message #8 received at 55308 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Prior <rprior <at> protonmail.com>
To: 55308 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: python-kivy: Update to 2.1.0.
Date: Sun, 08 May 2022 01:45:25 +0000
* 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






Information forwarded to guix-patches <at> gnu.org:
bug#55308; Package guix-patches. (Sun, 08 May 2022 01:46:01 GMT) Full text and rfc822 format available.

Message #11 received at 55308 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Prior <rprior <at> protonmail.com>
To: 55308 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add python-kivymd.
Date: Sun, 08 May 2022 01:45:36 +0000
* 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






Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 20 May 2022 18:14:01 GMT) Full text and rfc822 format available.

Notification sent to Ryan Prior <rprior <at> protonmail.com>:
bug acknowledged by developer. (Fri, 20 May 2022 18:14:01 GMT) Full text and rfc822 format available.

Message #16 received at 55308-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ryan Prior <rprior <at> protonmail.com>
Cc: 55308-done <at> debbugs.gnu.org
Subject: Re: bug#55308: [PATCH 0/2] Packaging kivymd
Date: Fri, 20 May 2022 20:13:20 +0200
[Message part 1 (text/plain, inline)]
Hello,

Ryan Prior <rprior <at> 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’.

[Message part 2 (text/x-patch, inline)]
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.")

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 Jun 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.