From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gLEwG/4mtF/kcgAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 19:39:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iFInF/4mtF8uGAAAB5/wlQ (envelope-from ) for ; Tue, 17 Nov 2020 19:39:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 308389405D2 for ; Tue, 17 Nov 2020 19:39:41 +0000 (UTC) Received: from localhost ([::1]:41760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf6pI-0006jg-5A for larch@yhetil.org; Tue, 17 Nov 2020 14:39:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6ok-0006dW-3Z for guix-patches@gnu.org; Tue, 17 Nov 2020 14:39:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kf6og-0007zS-GU for guix-patches@gnu.org; Tue, 17 Nov 2020 14:39:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kf6og-0004AS-DV for guix-patches@gnu.org; Tue, 17 Nov 2020 14:39:02 -0500 Subject: bug#44628: [PATCH 2/2] gnu: Add astroid. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 17 Nov 2020 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tanguy Le Carrour Cc: 44628-done@debbugs.gnu.org Mail-Followup-To: 44628@debbugs.gnu.org, efraim@flashner.co.il, tanguy@bioneland.org Received: via spool by 44628-done@debbugs.gnu.org id=D44628.160564191715979 (code D ref 44628); Tue, 17 Nov 2020 19:39:02 +0000 Received: (at 44628-done) by debbugs.gnu.org; 17 Nov 2020 19:38:37 +0000 Received: from localhost ([127.0.0.1]:32991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6oG-00049e-QJ for submit@debbugs.gnu.org; Tue, 17 Nov 2020 14:38:37 -0500 Received: from flashner.co.il ([178.62.234.194]:56864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6oE-00049P-JT for 44628-done@debbugs.gnu.org; Tue, 17 Nov 2020 14:38:35 -0500 Received: from localhost (unknown [141.226.15.169]) by flashner.co.il (Postfix) with ESMTPSA id 4F3C2403D2; Tue, 17 Nov 2020 19:38:28 +0000 (UTC) Date: Tue, 17 Nov 2020 21:37:55 +0200 From: Efraim Flashner Message-ID: <20201117193755.GX987@E5400> References: <20201114092611.6225-1-tanguy@bioneland.org> <20201114092611.6225-2-tanguy@bioneland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rPH0Y77Oimr1cvNq" Content-Disposition: inline In-Reply-To: <20201114092611.6225-2-tanguy@bioneland.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: SrZWuCYedGc1 --rPH0Y77Oimr1cvNq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch I went down a rabbit hole touching it up. On Sat, Nov 14, 2020 at 10:26:11AM +0100, Tanguy Le Carrour wrote: > * gnu/packages/mail.scm (astroid): New variable. > --- > gnu/packages/mail.scm | 60 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) >=20 > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index fcd593c356..d2af1ce10c 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -63,6 +63,7 @@ > #:use-module (gnu packages base) > #:use-module (gnu packages bash) > #:use-module (gnu packages bison) > + #:use-module (gnu packages boost) > #:use-module (gnu packages calendar) > #:use-module (gnu packages check) > #:use-module (gnu packages compression) > @@ -107,6 +108,7 @@ > #:use-module (gnu packages man) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages networking) > + #:use-module (gnu packages ninja) > #:use-module (gnu packages openldap) > #:use-module (gnu packages onc-rpc) > #:use-module (gnu packages pcre) > @@ -114,6 +116,7 @@ > #:use-module (gnu packages perl-check) > #:use-module (gnu packages perl-web) > #:use-module (gnu packages pkg-config) > + #:use-module (gnu packages protobuf) > #:use-module (gnu packages python) > #:use-module (gnu packages python-check) > #:use-module (gnu packages python-crypto) > @@ -703,6 +706,63 @@ mailpack. What can alterMIME do? > (license (list (license:non-copyleft "file://LICENSE") > license:bsd-3)))) > =20 > +(define-public astroid > + (package > + (name "astroid") > + (version "0.15") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/astroidmail/astroid") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "11cxbva9ni98gii59xmbxh4c6idcg3mg0pgdsp1c3j0yg7ix0lj3"))= )) I added a snippet for the test suite to adjust for gmime@3.2.3+ https://github.com/astroidmail/astroid/pull/685 > + (build-system cmake-build-system) > + (arguments > + `(#:configure-flags (list "-GNinja") > + #:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda _ > + (invoke "ninja" "-j" (number->string (parallel-job-count)))= )) > + (replace 'check > + (lambda _ > + (invoke "echo" "ninja" "test"))) This just echos "ninja test" but doesn't actually run anything. I changed it to run (invoke "ctest" ".") Then I added a phase to start the xorg display for the tests and another phase to work around not getting the test suite to recognize the plugin modules. > + (replace 'install > + (lambda _ > + (invoke "ninja" "install")))))) The native-inputs should have a bunch moved to regular inputs. It was also missing gnupg and w3m, needed for the test suite. I removed adwaita-icon-theme from propagated inputs, we try not to propagate icon sets. I also sorted them alphabetically. > + (native-inputs > + `(("gtkmm" ,gtkmm) > + ("gmime" ,gmime) > + ("gobject-introspection" ,gobject-introspection) > + ("webkitgtk" ,webkitgtk) > + ("pkg-config" ,pkg-config) > + ("ninja" ,ninja) > + ("ronn" ,ronn) > + ("libsass" ,libsass) > + ("libpeas" ,libpeas) > + ("boost" ,boost) > + ("glib-networking" ,glib-networking) > + ("protobuf" ,protobuf))) > + (inputs > + `(("python" ,python) > + ("notmuch" ,notmuch))) > + (propagated-inputs > + `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas) > + ("adwaita-icon-theme" ,adwaita-icon-theme))) > + (home-page "https://astroidmail.github.io/") > + (synopsis "GTK frontend to the notmuch mail system") > + (description > + "Astroid is a lightweight and fast Mail User Agent that provides > +a graphical interface to searching, display and composing email, > +organized in thread and tags. Astroid uses the notmuch backend for blaz= ingly > +fast searches through tons of email. Astroid searches, displays and > +compose emails =E2=80=94 and relies on other programs for fetching, > +syncing and sending email. ") > + (license license:gpl3+))) There's also a bit of borrowed code from geary and gmime, under the lgpl2.1+, so I added that to the license list. It is true that the entire work is under the gpl3+ but we try to be more specific if possible. > + > (define-public ripmime > ;; Upstream does not tag or otherwise provide any releases (only a ver= sion > ;; number in the source) > --=20 > 2.29.2 >=20 I didn't get a chance to test it since I don't use notmuch. Patch pushed! --=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 --rPH0Y77Oimr1cvNq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl+0JpMACgkQQarn3Mo9 g1FWvQ//f40aPE9l1pST3LQnsQbIHvP89P8g9K0ghQdG1/8/NeVjpEOenRuWsyAH JU+mMOc6J29iLT8YvLdE6DoitkLtRHWT4qL8glHtb4qxj09lyqsrJu2Ss6u/EGNC JZ7QQRj4E1DHLCjm7/B7DaosQq/TLESQ4LgZqJ6nD1pJWmIXsXCTNvmjg5hVERvR N1SfF5CRaEhlPpc8mTUYQ8tkX3a7lv0aScUNTy04BVH8zHxGJZa613vJlpjsjLKc xDyaDDBB/88DIzE/0B2N1oEwTLuCBxOCAFaXlAh4lZQ+xZRCcG0U771/4zsCVcvK 4/HKj751HIkiArSzt5RI2Bo1449rKWhQqesI6Cx3udPCfAn4ZtqOPn1YO298P/pv +qRoa/5Mb06xUQhtxpSOUF/PTSU+5D/eMIRR70s48Epk6DxZV+pnfZ+vM5oGiq5T 6TflMCED1kDyDbVSuADqlvB58vfGFMiPsgHbZ3KGTcQkFlhKB8raY9ya9zXypvIe +mabdMUoHp/kNHMZiwpQbK/hVv9odrxO3IW1Nlo2Nxbq4+/Gf0bl1QN03UtCjkfb zHbWwMfxLjolKyP1gfbSMtHp2+qzIuTacDJ2t1S/zF+lNtCK1ytjuOBiPuACKYyL VPbWQyi/G1q2qpr6eJqaW/k01uDR9brt91JjDH2g7LHMbitx2O0= =YF+L -----END PGP SIGNATURE----- --rPH0Y77Oimr1cvNq--