diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-05-10 00:54:13 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-10-14 23:53:20 +0100 |
commit | c35e49ca03a1f211ffe0f0a697fd4c504149026a (patch) | |
tree | 335565e14a7b85915029cc085d40ebd8d2026306 | |
parent | 4997758a5d34e71345c8b37ce516942edcdf8efa (diff) |
gnu: borgmatic: Move to pyproject-build-system.
* gnu/packages/backup.scm (borgmatic):
[build-system]: Move to pyproject-build-system.
[arguments]: Rename custom 'check phase to 'set-path one.
Change-Id: I916e87f10c75718c4e840d97eaa78623ed2a4fd3
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r-- | gnu/packages/backup.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 0973c5ddca..73d4b7c0e7 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2022 Feng Shu <tumashu@163.com> ;;; Copyright © 2023 Timo Wilken <guix@twilken.net> ;;; Copyright © 2024 jgart <jgart@dismail.de> +;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr> ;;; ;;; This file is part of GNU Guix. ;;; @@ -48,6 +49,7 @@ #:use-module (guix build-system go) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system qt) #:use-module (guix download) #:use-module (guix gexp) @@ -1317,7 +1319,7 @@ compression parameters used by Gzip.") (uri (pypi-uri "borgmatic" version)) (sha256 (base32 "0im7kx9mq1gymid88wa6yxcif4bdqpz5lag5fp9kpm8r5k13p2sr")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases @@ -1334,14 +1336,12 @@ compression parameters used by Gzip.") (string-append start "'" (search-input-file inputs "bin/borg") "'"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? + (add-before 'check 'set-path + (lambda _ ;; Tests require the installed executable. (setenv "PATH" (string-append #$output "/bin" ":" - (getenv "PATH"))) - (invoke "pytest"))))))) + (getenv "PATH")))))))) (inputs (list borg python-apprise python-colorama |