GNU bug report logs - #51502
[PATCH] gnu: Add borgmatic.

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Sat, 30 Oct 2021 08:59:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51502 in the body.
You can then email your comments to 51502 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#51502; Package guix-patches. (Sat, 30 Oct 2021 08:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 30 Oct 2021 08:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: guix-patches <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH] gnu: Add borgmatic.
Date: Sat, 30 Oct 2021 14:27:48 +0530
* 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 <at> famulari.name>
 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;; Copyright © 2017 Thomas Danckaert <post <at> thomasdanckaert.be>
-;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2017, 2021 Arun Isaac <arunisaac <at> systemreboot.net>
 ;;; Copyright © 2017 Kei Kebreau <kkebreau <at> posteo.net>
 ;;; Copyright © 2017, 2020 Efraim Flashner <efraim <at> flashner.co.il>
 ;;; Copyright © 2017 Christine Lemmer-Webber <cwebber <at> 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





Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Sun, 14 Nov 2021 14:27:02 GMT) Full text and rfc822 format available.

Notification sent to Arun Isaac <arunisaac <at> systemreboot.net>:
bug acknowledged by developer. (Sun, 14 Nov 2021 14:27:02 GMT) Full text and rfc822 format available.

Message #10 received at 51502-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 51502-done <at> debbugs.gnu.org
Subject: Re: [bug#51502] [PATCH] gnu: Add borgmatic.
Date: Sun, 14 Nov 2021 15:25:49 +0100
Hello,

Arun Isaac <arunisaac <at> 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




Information forwarded to guix-patches <at> gnu.org:
bug#51502; Package guix-patches. (Mon, 15 Nov 2021 12:27:01 GMT) Full text and rfc822 format available.

Message #13 received at 51502-done <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 51502-done <at> debbugs.gnu.org
Subject: Re: [bug#51502] [PATCH] gnu: Add borgmatic.
Date: Mon, 15 Nov 2021 17:56:16 +0530
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#51502; Package guix-patches. (Mon, 15 Nov 2021 19:59:01 GMT) Full text and rfc822 format available.

Message #16 received at 51502-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 51502-done <at> debbugs.gnu.org
Subject: Re: [bug#51502] [PATCH] gnu: Add borgmatic.
Date: Mon, 15 Nov 2021 20:58:32 +0100
Hello,

Arun Isaac <arunisaac <at> 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




Information forwarded to guix-patches <at> gnu.org:
bug#51502; Package guix-patches. (Tue, 16 Nov 2021 05:02:01 GMT) Full text and rfc822 format available.

Message #19 received at 51502-done <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 51502-done <at> debbugs.gnu.org
Subject: Re: [bug#51502] [PATCH] gnu: Add borgmatic.
Date: Tue, 16 Nov 2021 10:31:36 +0530
[Message part 1 (text/plain, inline)]
>> 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!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Dec 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.