guix_mirror_bot pushed a commit to branch master
in repository guix.

commit efd157c32b7219fdb91fee4d55f41ce58779b5bc
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 5 13:56:19 2025 +0200

    gnu: python-screenkey: Disable tests and improve style.
    
    * gnu/packages/python-xyz.scm (python-screenkey)
    [arguments]<#:tests?>: Disable them.
    <#:phases>: Improve phase 'fix-dlopen-paths.
    [inputs]: Remove python-setuptools-git, python-setuptools,
    python-tokenize-rt, python-wheel.  Add slop, as it is listed as a
    dependency in the README.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: I01395c4509180ac371a393b9a818dc0c2a848c0a
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 269f742597..6f54d0db0b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -35135,16 +35135,14 @@ CMake.")
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:tests? #f ; No tests.
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'fix-dlopen-paths
             (lambda* (#:key inputs #:allow-other-keys)
               (substitute* "Screenkey/xlib.py"
-                (("libX11.so.6")
-                 (search-input-file inputs "lib/libX11.so.6")))
-              (substitute* "Screenkey/xlib.py"
-                (("libXtst.so.6")
-                 (search-input-file inputs "lib/libXtst.so.6")))))
+                (("(libXtst.so.6|libX11.so.6)" lib)
+                 (search-input-file inputs (string-append "/lib/" lib))))))
           (add-after 'install 'wrap-screenkey
             (lambda _
               (wrap-program (string-append #$output "/bin/screenkey")
@@ -35160,10 +35158,8 @@ CMake.")
                   python-dbus-python
                   python-pycairo
                   python-pygobject
-                  python-setuptools
-                  python-setuptools-git
-                  python-tokenize-rt
-                  python-wheel))
+                  slop))
+    (native-inputs (list python-setuptools))
     (home-page "https://www.thregr.org/~wavexx/software/screenkey/";)
     (synopsis "Screencast tool to display pressed keys")
     (description

Reply via email to