gnu: duplicity: Update to 0.7.18.

* gnu/packages/backup.scm (duplicity): Update to 0.7.18.
This commit is contained in:
Tobias Geerinckx-Rice 2018-08-23 02:07:18 +02:00
parent 72816ebed2
commit 02489a6646
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -67,7 +67,7 @@
(define-public duplicity (define-public duplicity
(package (package
(name "duplicity") (name "duplicity")
(version "0.7.17") (version "0.7.18")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -77,10 +77,10 @@
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0jmh3h09680xyf33hzxxxl74bwz66zqhzvjlj7j89r9rz3qwa91p")))) "1qlika4l1k1nx8zr657ihcy0yzr1c1cdnjlbs325l5krvc3zbc5b"))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
`(("util-linux" ,util-linux) ;setsid command, for the tests `(("util-linux" ,util-linux) ; setsid command, for the tests
("par2cmdline" ,par2cmdline) ("par2cmdline" ,par2cmdline)
("python-pexpect" ,python2-pexpect) ("python-pexpect" ,python2-pexpect)
("python-fasteners" ,python2-fasteners) ("python-fasteners" ,python2-fasteners)
@ -91,23 +91,23 @@
(inputs (inputs
`(("librsync" ,librsync) `(("librsync" ,librsync)
("lftp" ,lftp) ("lftp" ,lftp)
("gnupg" ,gnupg) ;gpg executable needed ("gnupg" ,gnupg) ; gpg executable needed
("util-linux" ,util-linux) ;for setsid ("util-linux" ,util-linux) ; for setsid
("tzdata" ,tzdata))) ("tzdata" ,tzdata)))
(arguments (arguments
`(#:python ,python-2 ;setup assumes Python 2 `(#:python ,python-2 ; setup assumes Python 2
#:test-target "test" #:test-target "test"
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'patch-source (add-before 'build 'patch-source
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; embed gpg store name ;; Embed gpg store name.
(substitute* "duplicity/gpginterface.py" (substitute* "duplicity/gpginterface.py"
(("self.call = 'gpg'") (("self.call = 'gpg'")
(string-append "self.call = '" (assoc-ref inputs "gnupg") "/bin/gpg'"))) (string-append "self.call = '" (assoc-ref inputs "gnupg") "/bin/gpg'")))
;; This matches up with an unreleased upstream fix, it should be ;; This matches up with an unreleased upstream fix, it should be
;; removed when the package is updated ;; removed when the package is updated.
;; https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/revision/1308 ;; https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/revision/1308
(substitute* "duplicity/gpg.py" (substitute* "duplicity/gpg.py"
(("--no-secmem-warning'\\)") (("--no-secmem-warning'\\)")
@ -120,8 +120,8 @@
#t)) #t))
(add-before 'check 'check-setup (add-before 'check 'check-setup
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(setenv "HOME" (getcwd)) ;gpg needs to write to $HOME (setenv "HOME" (getcwd)) ; gpg needs to write to $HOME
(setenv "TZDIR" ;some timestamp checks need TZDIR (setenv "TZDIR" ; some timestamp checks need TZDIR
(string-append (assoc-ref inputs "tzdata") (string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo")) "/share/zoneinfo"))
#t))))) #t)))))