From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: offlineimap Date: Thu, 7 Apr 2016 09:55:06 +0300 Message-ID: <20160407065506.GA9443@debian-netbook> References: <20160406053232.GA10957@debian-netbook> <20160406121436.5eaff817@debian-netbook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/NkBOFFp2J2Af1nK" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao3qT-00018J-4a for guix-devel@gnu.org; Thu, 07 Apr 2016 02:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ao3qP-0007W7-Tb for guix-devel@gnu.org; Thu, 07 Apr 2016 02:55:13 -0400 Received: from flashner.co.il ([178.62.234.194]:59364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao3qP-0007W1-IQ for guix-devel@gnu.org; Thu, 07 Apr 2016 02:55:09 -0400 Content-Disposition: inline In-Reply-To: <20160406121436.5eaff817@debian-netbook> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel@gnu.org --/NkBOFFp2J2Af1nK Content-Type: multipart/mixed; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 06, 2016 at 12:14:36PM +0300, Efraim Flashner wrote: > On Wed, 6 Apr 2016 11:09:34 +0200 > Ricardo Wurmus wrote: >=20 > > Efraim Flashner writes: > >=20 > > [...] =20 > >=20 > > I=E2=80=99ve been using the sqlite backend for a while myself and it=E2= =80=99s really > > quite nice. > >=20 > > Does this dependency really need to be propagated, though? Or could we > > wrap the =E2=80=9Cofflineimap=E2=80=9D executable in a suitable PYTHONP= ATH instead? > >=20 > > ~~ Ricardo >=20 > From my understanding it needs to "be available", which in FHS terms mean= s be > installed, but I assume wrapping the offlineimap executable would work, a= nd > without propagating more programs into the user's profile. >=20 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-offlinei= map-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 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-offlineimap-Add-sqlite-support.patch" Content-Transfer-Encoding: quoted-printable =46rom c108ec58dbeccd324faf7c65a04054f24a096350 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner 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 --=20 2.8.0.rc3 --qMm9M+Fa2AknHoGS-- --/NkBOFFp2J2Af1nK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXBgRKAAoJEPTB05F+rO6TIPUP/2WpgGNfYGVsPlFdxpiCPtJ1 wi6pny4FkdG9/A2cZlHl8fRyfg74Kv9Zr7lZDwuQONaCAYQDrrsep7MpuvbYqMOK lGL0iNBAVDzPtTdST9VM2OQS6EKFuky48dl0fzjRnkoNZcWaRdwS/WB+jfjuq56E dE7+z1Dpswipa90FUUC6Bp8NXbelprJx+9SmoZp3GnDPwVve0PEQ61AvHEJ0wqTy LYaEbfEpcDEuK/G63pwWii/ewb/MLSGesST//VXStRMFNkJ72xZ1WahVcBqZA4KE 2FUMVr0PaeXemD0eYNBzwMOK/u9XZPGy2ht1Q6aDPKpngmTU8bJ4UmMxP4Bnc2DV 6biZH+oUWvbxlNT2yGj7icigXanRJjbzdoWCR8dCK4QHJae2WpManibiZ0of3pQk Wfdj1jl6vRGLVZPybDlRskVm88NbSzet+uxh0B+eymIYNvTm8ZhLaw6kpQWDnnqa R6LHIn54r1oqglWRl22nEWegHpsHFi+89u10lizuigRfCGyuKPELRXZrSDgw2GGf RWo2p4+WbdydlQO/2iYAYBuSkXpQG9pkJlu53HUWq/lbrJrPHrvrJCIrIyNjEGxv KCEY+nN9URt6LBSxstpEAHBJK+Q3KCUVGXrVSehwg59azRkRqUfGZuW8zi9QREDu cccWOAetufr/4RbX4zJj =Z2DC -----END PGP SIGNATURE----- --/NkBOFFp2J2Af1nK--