* [bug#51502] [PATCH] gnu: Add borgmatic.
@ 2021-10-30 8:57 Arun Isaac
2021-11-14 14:25 ` bug#51502: " Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Arun Isaac @ 2021-10-30 8:57 UTC (permalink / raw)
To: 51502; +Cc: Arun Isaac
* gnu/packages/backup.scm (borgmatic): New variable.
---
gnu/packages/backup.scm | 50 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 49 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 61d330e861..acde7e5b2f 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 @@ (define-module (gnu packages backup)
#: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)
@@ -1174,3 +1175,50 @@ (define-public disarchive
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 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+)))
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#51502: [PATCH] gnu: Add borgmatic.
2021-10-30 8:57 [bug#51502] [PATCH] gnu: Add borgmatic Arun Isaac
@ 2021-11-14 14:25 ` Nicolas Goaziou
2021-11-15 12:26 ` [bug#51502] " Arun Isaac
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-11-14 14:25 UTC (permalink / raw)
To: Arun Isaac; +Cc: 51502-done
Hello,
Arun Isaac <arunisaac@systemreboot.net> writes:
> * gnu/packages/backup.scm (borgmatic): New variable.
Applied. Thank you.
> + (description "borgmatic is simple, configuration-driven backup
> software
Fixed: ... is a simple...
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#51502] [PATCH] gnu: Add borgmatic.
2021-11-14 14:25 ` bug#51502: " Nicolas Goaziou
@ 2021-11-15 12:26 ` Arun Isaac
2021-11-15 19:58 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Arun Isaac @ 2021-11-15 12:26 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 51502-done
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Hi Nicolas,
Thanks for pushing!
>> + (description "borgmatic is simple, configuration-driven backup
>> software
>
> Fixed: ... is a simple...
Software is a mass noun similar to furniture, luggage, information,
etc. So, it is incorrect to say "borgmatic is /a/ software". "borgmatic
is software" is correct.
WDYT?
Cheers,
Arun
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#51502] [PATCH] gnu: Add borgmatic.
2021-11-15 12:26 ` [bug#51502] " Arun Isaac
@ 2021-11-15 19:58 ` Nicolas Goaziou
2021-11-16 5:01 ` Arun Isaac
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-11-15 19:58 UTC (permalink / raw)
To: Arun Isaac; +Cc: 51502-done
Hello,
Arun Isaac <arunisaac@systemreboot.net> writes:
> Software is a mass noun similar to furniture, luggage, information,
> etc. So, it is incorrect to say "borgmatic is /a/ software". "borgmatic
> is software" is correct.
>
> WDYT?
Of course, it makes sense. I'll counter-fix it ASAP.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#51502] [PATCH] gnu: Add borgmatic.
2021-11-15 19:58 ` Nicolas Goaziou
@ 2021-11-16 5:01 ` Arun Isaac
0 siblings, 0 replies; 5+ messages in thread
From: Arun Isaac @ 2021-11-16 5:01 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 51502-done
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
>> Software is a mass noun similar to furniture, luggage, information,
>> etc. So, it is incorrect to say "borgmatic is /a/ software". "borgmatic
>> is software" is correct.
>>
>> WDYT?
>
> Of course, it makes sense. I'll counter-fix it ASAP.
Thank you!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-16 5:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 8:57 [bug#51502] [PATCH] gnu: Add borgmatic Arun Isaac
2021-11-14 14:25 ` bug#51502: " Nicolas Goaziou
2021-11-15 12:26 ` [bug#51502] " Arun Isaac
2021-11-15 19:58 ` Nicolas Goaziou
2021-11-16 5:01 ` Arun Isaac
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).