~ruther/guix-local

efd157c32b7219fdb91fee4d55f41ce58779b5bc — Nicolas Graves 4 months ago 922bcb2
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 <sharlatanus@gmail.com>
1 files changed, 5 insertions(+), 9 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +5 -9
@@ 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