gnu: offlineimap: Add sqlite support.

* gnu/packages/mail.scm (offlineimap)[inputs]: Add python2-pysqlite.
[arguments]: Wrap binary with python2-pysqlite's path.
This commit is contained in:
Efraim Flashner 2016-04-07 09:51:21 +03:00
parent 58e87f66ce
commit 42aa73b337
1 changed files with 11 additions and 1 deletions

View File

@ -302,11 +302,21 @@ and corrections. It is based on a Bayesian filter.")
"0462mal2fxvavxhwjk1a6vsnspx07yniifa687dwg46aplqznin4")))) "0462mal2fxvavxhwjk1a6vsnspx07yniifa687dwg46aplqznin4"))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs `(("python" ,python-2))) (native-inputs `(("python" ,python-2)))
(inputs `(("python2-pysqlite" ,python2-pysqlite)))
(arguments (arguments
;; The setup.py script expects python-2. ;; The setup.py script expects python-2.
`(#:python ,python-2 `(#:python ,python-2
;; Tests require a modifiable IMAP account. ;; Tests require a modifiable IMAP account.
#:tests? #f)) #:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-binary
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/offlineimap")))
(wrap-program bin
`("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
#t))))))
(home-page "http://www.offlineimap.org") (home-page "http://www.offlineimap.org")
(synopsis "Sync emails between two repositories") (synopsis "Sync emails between two repositories")
(description (description