Archived
1
0
Fork 0

gnu: offlineimap: Replace with offlineimap3.

* gnu/packages/mail.scm (offlineimap3): New variable.
(offlineimap): Replace with deprecated package.
This commit is contained in:
Pierre Langlois 2021-08-21 11:39:52 +01:00
parent 76ef6dc716
commit d8d124fb65
No known key found for this signature in database
GPG key ID: A8FC9E447F4F7D54

View file

@ -156,6 +156,7 @@
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix deprecation)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix svn-download) #:use-module (guix svn-download)
@ -1045,30 +1046,33 @@ content (body). The program is able to learn from the user's classifications
and corrections. It is based on a Bayesian filter.") and corrections. It is based on a Bayesian filter.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public offlineimap (define-public offlineimap3
;; The OfflineIMAP3 fork does not yet have a release, but it's likely to be
;; 8.0.0 but the source still reports 7.3.0, see
;; https://github.com/OfflineIMAP/offlineimap3/issues/10.
(let ((commit "4ca9c75c6f9a0cc8dc7b69dd6abf073e494cc0e5")
(revision "0"))
(package (package
(name "offlineimap") (name "offlineimap3")
(version "7.3.3") (version (git-version "7.3.0" revision commit))
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/OfflineIMAP/offlineimap") (url "https://github.com/OfflineIMAP/offlineimap3")
(commit (string-append "v" version)))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1gg8ry67i20qapj4z20am9bm67m2q28kixcj7ja75m897vhzarnq")))) "0nzh5dcc559jfw4yy12gc98s17w82b15zxikspc6apd8filmk9xg"))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
`(("asciidoc" ,asciidoc))) `(("asciidoc" ,asciidoc)))
(inputs (inputs
`(("python2-pysqlite" ,python2-pysqlite) `(("python-distro" ,python-distro)
("python2-rfc6555" ,python2-rfc6555) ("python-imaplib2" ,python-imaplib2)
("python2-six" ,python2-six))) ("python-rfc6555" ,python-rfc6555)))
(arguments (arguments
;; The setup.py script expects python-2. `(;; Tests require a modifiable IMAP account.
`(#:python ,python-2
;; Tests require a modifiable IMAP account.
#:tests? #f #:tests? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -1083,15 +1087,17 @@ and corrections. It is based on a Bayesian filter.")
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(man (string-append out "/share/man"))) (man (string-append out "/share/man")))
(install-file "docs/offlineimap.1" (string-append man "/man1")) (install-file "docs/offlineimap.1" (string-append man "/man1"))
(install-file "docs/offlineimapui.7" (string-append man "/man7")) (install-file "docs/offlineimapui.7" (string-append man "/man7"))))))))
#t))))))
(home-page "https://www.offlineimap.org") (home-page "https://www.offlineimap.org")
(synopsis "Sync emails between two repositories") (synopsis "Sync emails between two repositories")
(description (description
"OfflineImap synchronizes emails between two repositories, so that you "OfflineImap synchronizes emails between two repositories, so that you
can read the same mailbox from multiple computers. It supports IMAP as REMOTE can read the same mailbox from multiple computers. It supports IMAP as REMOTE
repository and Maildir/IMAP as LOCAL repository.") repository and Maildir/IMAP as LOCAL repository.")
(license license:gpl2+))) (license license:gpl2+))))
(define-public offlineimap
(deprecated-package "offlineimap" offlineimap3))
(define-public emacs-mew (define-public emacs-mew
(package (package