guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 53c84d38cef506377d3dd5e85c7631ab7d0017c4
Author: Sughosha <[email protected]>
AuthorDate: Wed Jul 15 15:48:57 2026 +0530

    gnu: Add kde-material-you-colors.
    
    * gnu/packages/kde-xyz.scm (kde-material-you-colors): New variable.
    
    Co-authored-by: nick <[email protected]>
---
 gnu/packages/kde-xyz.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/kde-xyz.scm b/gnu/packages/kde-xyz.scm
index 02592c3ff3..1bfd02a859 100644
--- a/gnu/packages/kde-xyz.scm
+++ b/gnu/packages/kde-xyz.scm
@@ -19,6 +19,7 @@
 (define-module (gnu packages kde-xyz)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
@@ -33,12 +34,70 @@
   #:use-module (gnu packages glib)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages xorg))
 
+(define-public kde-material-you-colors
+  (package
+    (name "kde-material-you-colors")
+    ;; This commit fixes loading the widget on Qt version 6.9 or older.
+    (properties '((commit . "72421299789ce863d902dec38daaadaddc378b2e")
+                  (revision . "0")))
+    (version (git-version "2.2.0"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/luisbocanegra/kde-material-you-colors";)
+              (commit (assoc-ref properties 'commit))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0kp9ri500pn3x3pwjdik0ciqqpdk8yy749ldmasxjwfvk9ydzjjd"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no tests exist in source
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; XXX: stty: 'standard input': Inappropriate ioctl for device
+          (delete 'sanity-check)
+          (add-after 'unpack 'fix-commands
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "src/kde_material_you_colors/utils/utils.py"
+                (("\"whereis")
+                 (string-append "\""
+                                (search-input-file inputs "/bin/whereis")))
+                (("\"stty")
+                 (string-append "\""
+                                (search-input-file inputs "/bin/stty"))))
+              (substitute* "src/kde_material_you_colors/utils/kwin_utils.py"
+                (("\"gdbus")
+                 (string-append "\""
+                                (search-input-file inputs "/bin/gdbus")))))))))
+    (native-inputs (list python-setuptools))
+    (inputs (list coreutils-minimal       ;for stty
+                  `(,glib "bin")          ;for gdbus
+                  python-dbus
+                  python-materialyoucolor
+                  python-numpy
+                  python-pillow
+                  python-magic
+                  python-pywal16          ;optional
+                  util-linux))            ;for whereis
+    (home-page "https://github.com/luisbocanegra/kde-material-you-colors";)
+    (synopsis "Automatic Material You colors generator for the KDE Plasma")
+    (description
+     "KDE Material You Colors is an automatic Material You colors generator
+from your wallpaper for KDE Plasma.")
+    (license license:gpl3)))
+
 (define-public kwin-effects-better-blur-dx
   (package
     (name "kwin-effects-better-blur-dx")

Reply via email to