mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: borgmatic: Move to pyproject-build-system.
* gnu/packages/backup.scm (borgmatic): [build-system]: Move to pyproject-build-system. [arguments]: Migrate 'check phase replacement to <#:test-flags>. <#:phases>: Add 'set-path phase. Change-Id: I916e87f10c75718c4e840d97eaa78623ed2a4fd3 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
a60366ca06
commit
910c1ee7ce
1 changed files with 5 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
||||||
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2022 Feng Shu <tumashu@163.com>
|
;;; Copyright © 2022 Feng Shu <tumashu@163.com>
|
||||||
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
|
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
|
||||||
|
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;; Copyright © 2024 jgart <jgart@dismail.de>
|
;;; Copyright © 2024 jgart <jgart@dismail.de>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -1334,7 +1335,7 @@ compression parameters used by Gzip.")
|
||||||
(uri (pypi-uri "borgmatic" version))
|
(uri (pypi-uri "borgmatic" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0im7kx9mq1gymid88wa6yxcif4bdqpz5lag5fp9kpm8r5k13p2sr"))))
|
(base32 "0im7kx9mq1gymid88wa6yxcif4bdqpz5lag5fp9kpm8r5k13p2sr"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases #~(modify-phases %standard-phases
|
#:phases #~(modify-phases %standard-phases
|
||||||
|
@ -1351,14 +1352,12 @@ compression parameters used by Gzip.")
|
||||||
(string-append start "'"
|
(string-append start "'"
|
||||||
(search-input-file inputs "bin/borg")
|
(search-input-file inputs "bin/borg")
|
||||||
"'")))))
|
"'")))))
|
||||||
(replace 'check
|
(add-before 'check 'set-path
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda _
|
||||||
(when tests?
|
|
||||||
;; Tests require the installed executable.
|
;; Tests require the installed executable.
|
||||||
(setenv "PATH"
|
(setenv "PATH"
|
||||||
(string-append #$output "/bin" ":"
|
(string-append #$output "/bin" ":"
|
||||||
(getenv "PATH")))
|
(getenv "PATH"))))))))
|
||||||
(invoke "pytest")))))))
|
|
||||||
(inputs (list borg
|
(inputs (list borg
|
||||||
python-apprise
|
python-apprise
|
||||||
python-colorama
|
python-colorama
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue