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
This commit is contained in:
Vinicius Monego 2025-06-21 17:11:52 -03:00
parent b6b6d50698
commit 4258e963f4
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -31,6 +31,7 @@
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Ashish SHUKLA <ashish.is@lostca.se> ;;; Copyright © 2025 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2025 Vinicius Monego <monego@posteo.net>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -978,25 +979,21 @@ Duperemove can also take input from the @command{fdupes} program.")
(define-public ranger (define-public ranger
(package (package
(name "ranger") (name "ranger")
(version "1.9.3") (version "1.9.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://ranger.github.io/" (uri (string-append "https://ranger.github.io/"
"ranger-" version ".tar.gz")) "ranger-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0lfjrpv3z4h0knd3v94fijrw2zjba51mrp3mjqx2c98wr428l26f")))) "128ggxfhfmckl7x89flwxks7gxq0m02insdizcsp62193c6mxmvs"))))
(build-system python-build-system) (build-system pyproject-build-system)
(inputs (inputs
(list bash-minimal w3m)) (list bash-minimal w3m))
(native-inputs (native-inputs
(list which (list python-pytest python-setuptools python-wheel))
;; For tests.
python-pytest))
(arguments (arguments
'( ;; The 'test' target runs developer tools like pylint, which fail. '(#:phases
#:test-target "test_pytest"
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'wrap-program (add-after 'install 'wrap-program
;; Tell 'ranger' where 'w3mimgdisplay' is. ;; Tell 'ranger' where 'w3mimgdisplay' is.
@ -1007,11 +1004,7 @@ Duperemove can also take input from the @command{fdupes} program.")
(w3mimgdisplay (string-append w3m (w3mimgdisplay (string-append w3m
"/libexec/w3m/w3mimgdisplay"))) "/libexec/w3m/w3mimgdisplay")))
(wrap-program ranger (wrap-program ranger
`("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)))))) `("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))))))
(home-page "https://ranger.github.io/") (home-page "https://ranger.github.io/")
(synopsis "Console file manager") (synopsis "Console file manager")
(description "ranger is a console file manager with Vi key bindings. It (description "ranger is a console file manager with Vi key bindings. It