diff options
Diffstat (limited to 'gnu/packages/backup.scm')
-rw-r--r-- | gnu/packages/backup.scm | 51 |
1 files changed, 38 insertions, 13 deletions
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 0973c5ddca..04abba54f5 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2022 Feng Shu <tumashu@163.com> ;;; Copyright © 2023 Timo Wilken <guix@twilken.net> +;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr> ;;; Copyright © 2024 jgart <jgart@dismail.de> ;;; ;;; This file is part of GNU Guix. @@ -262,6 +263,7 @@ backups (called chunks) to allow easy burning to CD/DVD.") (define-public libarchive (package (name "libarchive") + (replacement libarchive/fixed) (version "3.6.1") (source (origin @@ -351,6 +353,22 @@ random access nor for in-place modification. This package provides the @command{bsdcat}, @command{bsdcpio} and @command{bsdtar} commands.") (license license:bsd-2))) +(define libarchive/fixed + (package + (inherit libarchive) + (version "3.7.7") + (source + (origin + (method url-fetch) + (uri (list (string-append "https://libarchive.org/downloads/libarchive-" + version ".tar.xz") + (string-append "https://github.com/libarchive/libarchive" + "/releases/download/v" version "/libarchive-" + version ".tar.xz"))) + (sha256 + (base32 + "1vps57mrpqmrk4zayh5g5amqfq7031s5zzkkxsm7r71rqf1wv6l7")))))) + (define-public rdup (package (name "rdup") @@ -1317,9 +1335,12 @@ 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 + ;; XXX: all tests fail with error: AttributeError: module + ;; '_pytest.runner' has no attribute 'call_runtest_hook'. + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'configure (lambda* (#:key inputs #:allow-other-keys) @@ -1334,21 +1355,25 @@ 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"))))))) - (inputs (list borg - python-apprise - python-colorama - python-jsonschema - python-requests - python-ruamel.yaml)) - (native-inputs (list python-flexmock python-pytest python-pytest-cov)) + (getenv "PATH")))))))) + (native-inputs + (list python-flexmock + python-pytest + python-pytest-cov + python-setuptools + python-wheel)) + (inputs + (list borg + python-apprise + python-colorama + python-jsonschema + python-requests + python-ruamel.yaml)) (home-page "https://torsion.org/borgmatic/") (synopsis "Simple, configuration-driven backup software") (description |