~ruther/guix-local

8707776c941fb333ee24b1c6c6caa00c30a092c1 — Nicolas Graves 4 months ago 1d0d80b
gnu: python-py3status: Update to 3.62.

* gnu/packages/python-xyz.scm (python-py3status): Update to 3.62.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-hatchling.

Change-Id: Ia8bb3e6221d5a090e2f05b676e18719fa374670e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 23 insertions(+), 22 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +23 -22
@@ 22112,34 22112,35 @@ in strings and comments.")
(define-public python-py3status
  (package
    (name "python-py3status")
    (version "3.50")
    (version "3.62")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "py3status" version))
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/ultrabug/py3status")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0j2dx9lzpic15r8p0r0s3jmcskxpacahxl640b4864ldn5rlnh9d"))))
    (build-system python-build-system)
    (inputs
     (list file))
        (base32 "13ggwr35w5isylrg1n7akhycm18r03bxin95hdpcmqg7fvqyfppz"))))
    (build-system pyproject-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         ;; 'file' is used for detection of configuration file encoding
         ;; let's make link the dependency to particular input
         (add-before 'build 'patch-file-path
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((file-path (assoc-ref inputs "file")))
               (substitute* "py3status/parse_config.py"
                 (("\\[\"file\", \"-b\"")
                  (string-append "['" file-path "/bin/file', '-b'")))
               #t))))
       #:tests? #f)) ; TODO: Requires many libraries not in Guix.
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'hardcode-file-path
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "py3status/parse_config.py"
                (("\\[\"file\", \"-b\"")
                 (format #f "[~s, \"-b\""
                         (search-input-file inputs "bin/file")))))))))
    (native-inputs (list python-hatchling python-pytest))
    (inputs (list file))
    (home-page "https://github.com/ultrabug/py3status")
    (synopsis "Extensible i3status wrapper written in Python")
    (description "py3status is an i3status wrapper which extends i3status
functionality in a modular way, allowing you to extend your panel with your
own code, responding to click events and updating clock every second.")
    (description
     "py3status is an i3status wrapper which extends i3status functionality in
a modular way, allowing you to extend your panel with your own code,
responding to click events and updating clock every second.")
    (license license:bsd-3)))

(define-public python-tblib