From: Efraim Flashner <efraim@flashner.co.il>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel@gnu.org
Subject: Re: offlineimap
Date: Thu, 7 Apr 2016 09:55:06 +0300 [thread overview]
Message-ID: <20160407065506.GA9443@debian-netbook> (raw)
In-Reply-To: <20160406121436.5eaff817@debian-netbook>
[-- Attachment #1.1: Type: text/plain, Size: 1436 bytes --]
On Wed, Apr 06, 2016 at 12:14:36PM +0300, Efraim Flashner wrote:
> On Wed, 6 Apr 2016 11:09:34 +0200
> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> wrote:
>
> > Efraim Flashner <efraim@flashner.co.il> writes:
> >
> > [...]
> >
> > I’ve been using the sqlite backend for a while myself and it’s really
> > quite nice.
> >
> > Does this dependency really need to be propagated, though? Or could we
> > wrap the “offlineimap” executable in a suitable PYTHONPATH instead?
> >
> > ~~ Ricardo
>
> From my understanding it needs to "be available", which in FHS terms means be
> installed, but I assume wrapping the offlineimap executable would work, and
> without propagating more programs into the user's profile.
>
I think I've gotten it right with the PYTHONPATH, this is my first time
tring it that way. Here's the output of `guix gc --references`:
$guix gc --referencesi /gnu/store/z1i4vkk8zpxszkavx5dmaq11lvkspp9y-offlineimap-6.7.0
/gnu/store/b1yqjimbdh5bf9jnizd4h7yf110744j2-bash-4.3.42
/gnu/store/kcc3cxnx9l2hbg7pjhxsa0r5yq2j2f38-python-2.7.10
/gnu/store/pdhx76bbawkwrlqql2yglcl91bi5yrrc-python2-pysqlite-2.8.1
/gnu/store/z1i4vkk8zpxszkavx5dmaq11lvkspp9y-offlineimap-6.7.0
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #1.2: 0001-gnu-offlineimap-Add-sqlite-support.patch --]
[-- Type: text/plain, Size: 1638 bytes --]
From c108ec58dbeccd324faf7c65a04054f24a096350 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Thu, 7 Apr 2016 09:51:21 +0300
Subject: [PATCH] gnu: offlineimap: Add sqlite support.
* gnu/packages/mail.scm (offlineimap)[inputs]: Add python2-pysqlite.
[arguments]: Wrap binary with python2-pysqlite's path.
---
gnu/packages/mail.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 7bcb93c..e5eefc7 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -302,11 +302,21 @@ and corrections. It is based on a Bayesian filter.")
"0462mal2fxvavxhwjk1a6vsnspx07yniifa687dwg46aplqznin4"))))
(build-system python-build-system)
(native-inputs `(("python" ,python-2)))
+ (inputs `(("python2-pysqlite" ,python2-pysqlite)))
(arguments
;; The setup.py script expects python-2.
`(#:python ,python-2
;; 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")
(synopsis "Sync emails between two repositories")
(description
--
2.8.0.rc3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-04-07 6:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 5:32 offlineimap Efraim Flashner
2016-04-06 9:09 ` offlineimap Ricardo Wurmus
2016-04-06 9:14 ` offlineimap Efraim Flashner
2016-04-07 6:55 ` Efraim Flashner [this message]
2016-04-11 8:49 ` offlineimap Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160407065506.GA9443@debian-netbook \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).