ngz pushed a commit to branch python-team
in repository guix.
commit fdef5662cce6a57aa6bfa682c7260b65ce3669b8
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri May 10 00:54:13 2024 +0200
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>.
Change-Id: I916e87f10c75718c4e840d97eaa78623ed2a4fd3
Signed-off-by: Nicolas Goaziou <[email protected]>
---
gnu/packages/backup.scm | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 5e74439bff..663eb2568f 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -24,6 +24,7 @@
;;; Copyright © 2022 Maxim Cournoyer <[email protected]>
;;; Copyright © 2022 Feng Shu <[email protected]>
;;; Copyright © 2023 Timo Wilken <[email protected]>
+;;; Copyright © 2024 Nicolas Graves <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -46,6 +47,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#: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)
@@ -1332,7 +1334,7 @@ compression parameters used by Gzip.")
(uri (pypi-uri "borgmatic" version))
(sha256
(base32 "1xmqv0gg2ic7lp5kmygr9f6qkabsr86mma7pigan12vk2bcdbw31"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
#:phases #~(modify-phases %standard-phases
@@ -1348,15 +1350,7 @@ compression parameters used by Gzip.")
(("(module.get_local_path.+ == )'borg'" all start)
(string-append start "'"
(search-input-file inputs "bin/borg")
- "'")))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Tests require the installed executable.
- (setenv "PATH"
- (string-append #$output "/bin" ":"
- (getenv "PATH")))
- (invoke "pytest")))))))
+ "'"))))))))
(inputs (list borg
python-apprise
python-colorama