From patchwork Wed Nov 24 10:00:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 34784 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CA6FA27BBEA; Wed, 24 Nov 2021 10:13:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 90F5727BBE9 for ; Wed, 24 Nov 2021 10:13:44 +0000 (GMT) Received: from localhost ([::1]:44166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mppHb-0004lw-O5 for patchwork@mira.cbaines.net; Wed, 24 Nov 2021 05:13:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpp5L-0004K7-DD for guix-patches@gnu.org; Wed, 24 Nov 2021 05:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpp5K-0005eT-VJ for guix-patches@gnu.org; Wed, 24 Nov 2021 05:01:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpp5K-0000JV-UU for guix-patches@gnu.org; Wed, 24 Nov 2021 05:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52075] [PATCH 3/4] gnu: Add python-notmuch2. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 Nov 2021 10:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52075 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52075@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 52075-submit@debbugs.gnu.org id=B52075.16377480461138 (code B ref 52075); Wed, 24 Nov 2021 10:01:02 +0000 Received: (at 52075) by debbugs.gnu.org; 24 Nov 2021 10:00:46 +0000 Received: from localhost ([127.0.0.1]:53223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpp54-0000ID-5X for submit@debbugs.gnu.org; Wed, 24 Nov 2021 05:00:46 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpp4z-0000HY-U9 for 52075@debbugs.gnu.org; Wed, 24 Nov 2021 05:00:42 -0500 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 168D4E0012; Wed, 24 Nov 2021 10:00:35 +0000 (UTC) From: Tanguy Le Carrour Date: Wed, 24 Nov 2021 11:00:15 +0100 Message-Id: <20211124100016.21905-3-tanguy@bioneland.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211124100016.21905-1-tanguy@bioneland.org> References: <20211124100016.21905-1-tanguy@bioneland.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/mail.scm (python-notmuch2): New variable. --- gnu/packages/mail.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 7c7e411d5c..9dc38708bf 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -107,6 +107,7 @@ (define-module (gnu packages mail) #:use-module (gnu packages language) #:use-module (gnu packages libcanberra) #:use-module (gnu packages libevent) + #:use-module (gnu packages libffi) #:use-module (gnu packages libidn) #:use-module (gnu packages libunistring) #:use-module (gnu packages libunwind) @@ -1511,6 +1512,29 @@ (define-public python-notmuch (define-public python2-notmuch (package-with-python2 python-notmuch)) +(define-public python-notmuch2 + (package + (name "python-notmuch2") + (version (package-version notmuch)) + ;; The bindings are distributed via the notmuch release tarball. + (source (package-source notmuch)) + (build-system python-build-system) + (inputs `(("notmuch" ,notmuch))) + (propagated-inputs `(("python-cffi" ,python-cffi))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; This python package lives in a subdirectory of the notmuch source + ;; tree, so chdir into it before building. + (add-after 'unpack 'enter-python-dir + (lambda _ (chdir "bindings/python-cffi") #t))))) + (home-page (package-home-page notmuch)) + (synopsis "Pythonic bindings for the notmuch mail database using CFFI") + (description + "This package provides Python bindings to use the Notmuch mail indexing +and search library.") + (license license:gpl3+))) + (define-public muchsync (package (name "muchsync")