[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add borgmatic.
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add borgmatic. |
Date: |
Sun, 14 Nov 2021 09:25:39 -0500 |
This is an automated email from the git hooks/post-receive script.
ngz pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new d29a9aa gnu: Add borgmatic.
d29a9aa is described below
commit d29a9aa54b9df9167f4641dd8ca42c561b460c4c
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Sat Oct 30 14:27:48 2021 +0530
gnu: Add borgmatic.
* gnu/packages/backup.scm (borgmatic): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/backup.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 1dca6fd..a5807d7 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
-;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2017, 2021 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
@@ -80,6 +80,7 @@
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages rsync)
+ #:use-module (gnu packages serialization)
#:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
#:use-module (gnu packages valgrind)
@@ -1172,3 +1173,51 @@ original files. For example, a software archive made
using tar and
Gzip will need to describe the order of files in the tarball and the
compression parameters used by Gzip.")
(license license:gpl3+)))
+
+(define-public borgmatic
+ (package
+ (name "borgmatic")
+ (version "1.5.20")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "borgmatic" version))
+ (sha256
+ (base32 "1rdpj1mii4fbyprg56krf5k0xsd97ghybaabr7zdhsrcsxf719ha"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Set absolute store path to borg.
+ (substitute* "borgmatic/commands/borgmatic.py"
+ (("location\\.get\\('local_path', 'borg'\\)")
+ (string-append "location.get('local_path', '"
+ (assoc-ref inputs "borg") "/bin/borg"
+ "')")))))
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ ;; Tests require the installed executable.
+ (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
+ ":" (getenv "PATH")))
+ (invoke "pytest")))))))
+ (inputs
+ `(("borg" ,borg)
+ ("python-colorama" ,python-colorama)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-requests" ,python-requests)
+ ("python-ruamel.yaml" ,python-ruamel.yaml)))
+ (native-inputs
+ `(("python-flexmock" ,python-flexmock)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://torsion.org/borgmatic/")
+ (synopsis "Simple, configuration-driven backup software")
+ (description
+ "borgmatic is a simple, configuration-driven backup software for servers
+and workstations. Protect your files with client-side encryption. Backup
+your databases too. Monitor it all with integrated third-party services.
+borgmatic is powered by borg.")
+ (license license:gpl3+)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add borgmatic.,
guix-commits <=