~ruther/guix-local

1494c6316e9f243b971cfd05966aa23ff07b12b9 — Sharlatan Hellseher 4 months ago e507061
gnu: python-wmctrl: Update to 0.5.

* gnu/packages/python-xyz.scm (python-wmctrl): Update to 0.5. Use
G-Epressions.
[build-system]: Switch to pyproject-build-system.
[arguments] <tests?>: Disalbe for now.
[native-inputs]: Add python-setuptools.

Change-Id: Iab74b86d60c62856be83a033d39c0fe8561a3a9e
1 files changed, 22 insertions(+), 16 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +22 -16
@@ 11446,30 11446,36 @@ humans, and implementation simplicity.")
(define-public python-wmctrl
  (package
    (name "python-wmctrl")
    (version "0.4")
    (version "0.5")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "wmctrl" version))
       (sha256
        (base32
         "1q0l1sqnj5wma87k3dsgmsyph464syjc6fl8qcpa41nan1rgzjv6"))))
    (build-system python-build-system)
        (base32 "0qp9adzsabcbjgm864m4dc8x5knvfb1mskih4byxdqp9dxms6fbq"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (add-after 'unpack 'patch-paths
                    (lambda* (#:key inputs #:allow-other-keys)
                      (let ((wmctrl (assoc-ref inputs "wmctrl")))
                        (substitute* "wmctrl.py"
                          (("'wmctrl")
                           (string-append "'" wmctrl "/bin/wmctrl")))))))))
    (inputs (list wmctrl))
    (propagated-inputs (list python-attrs))
     (list
      #:tests? #f ;XXX: all tests fail, require some set up
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-paths
            (lambda _
              (substitute* "wmctrl.py"
                (("'wmctrl")
                 (string-append "'" #$(this-package-input "wmctrl")
                                "/bin/wmctrl"))))))))
    (native-inputs
     (list python-setuptools))
    (inputs
     (list wmctrl))
    (propagated-inputs
     (list python-attrs))
    (home-page "https://github.com/antocuni/wmctrl")
    (synopsis "Tool to programmatically control Xorg windows")
    (description "This package provides a library for programmatically
controlling Xorg windows using Python.  The library relies on the
@command{wmctrl} to do so.")
    (description
     "This package provides a library for programmatically controlling Xorg
windows using Python.  The library relies on the @command{wmctrl} to do so.")
    (license license:expat)))

(define-public python-fancycompleter