~ruther/guix-local

4258e963f4c33b4706d12a2d87fc906ff5434683 — Vinicius Monego 1 year, 9 days ago b6b6d50
gnu: ranger: Update to 1.9.4.

* gnu/packages/disk.scm (ranger): Update to 1.9.4.
[build-system]: Use pyproject-build-system.
[native-inputs]: Remove which. Add python-setuptools, python-wheel.
[arguments]: Remove '#:test-target'. Do not override the 'check' phase.

Change-Id: I96bdfebd8ffb7793835fdf33f6f68249fe59eaba
1 files changed, 7 insertions(+), 14 deletions(-)

M gnu/packages/disk.scm
M gnu/packages/disk.scm => gnu/packages/disk.scm +7 -14
@@ 31,6 31,7 @@
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2025 Vinicius Monego <monego@posteo.net>

;;;
;;; This file is part of GNU Guix.


@@ 978,25 979,21 @@ Duperemove can also take input from the @command{fdupes} program.")
(define-public ranger
  (package
    (name "ranger")
    (version "1.9.3")
    (version "1.9.4")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://ranger.github.io/"
                                  "ranger-" version ".tar.gz"))
              (sha256
               (base32
                "0lfjrpv3z4h0knd3v94fijrw2zjba51mrp3mjqx2c98wr428l26f"))))
    (build-system python-build-system)
                "128ggxfhfmckl7x89flwxks7gxq0m02insdizcsp62193c6mxmvs"))))
    (build-system pyproject-build-system)
    (inputs
     (list bash-minimal w3m))
    (native-inputs
     (list which
           ;; For tests.
           python-pytest))
     (list python-pytest python-setuptools python-wheel))
    (arguments
     '( ;; The 'test' target runs developer tools like pylint, which fail.
       #:test-target "test_pytest"
       #:phases
     '(#:phases
       (modify-phases %standard-phases
         (add-after 'install 'wrap-program
           ;; Tell 'ranger' where 'w3mimgdisplay' is.


@@ 1007,11 1004,7 @@ Duperemove can also take input from the @command{fdupes} program.")
                    (w3mimgdisplay (string-append w3m
                                   "/libexec/w3m/w3mimgdisplay")))
               (wrap-program ranger
                 `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay))))))
         (replace 'check
           ;; The default check phase simply prints 'Ran 0 tests in 0.000s'.
           (lambda* (#:key test-target #:allow-other-keys)
             (invoke "make" test-target))))))
                 `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)))))))))
    (home-page "https://ranger.github.io/")
    (synopsis "Console file manager")
    (description "ranger is a console file manager with Vi key bindings.  It