From unknown Wed Aug 20 03:37:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Sep 2019 23:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37317@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156772510518832 (code B ref -1); Thu, 05 Sep 2019 23:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2019 23:11:45 +0000 Received: from localhost ([127.0.0.1]:36225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i60um-0004tf-Pv for submit@debbugs.gnu.org; Thu, 05 Sep 2019 19:11:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:46224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i60uk-0004tW-Ty for submit@debbugs.gnu.org; Thu, 05 Sep 2019 19:11:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i60uj-00070j-3k for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i60uf-0005t3-HL for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:39 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i60uc-0005ky-5P for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:35 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C29F4E0002 for ; Thu, 5 Sep 2019 23:11:30 +0000 (UTC) From: Nicolas Goaziou Date: Fri, 06 Sep 2019 01:11:29 +0200 Message-ID: <87mufipcda.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.196 X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, The following patch adds emacs-flyspell-grammalecte. Feedback welcome. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-emacs-flycheck-grammalecte.patch Content-Description: Add emacs-flyspell-grammalecte >From d362da36f369d0bf98d49c484ce9fd6b0603b5b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 6 Sep 2019 01:10:10 +0200 Subject: [PATCH] gnu: Add emacs-flycheck-grammalecte. * gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): New variable. --- gnu/packages/emacs-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8f866fbc28..7ca3f8e4ca 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -88,6 +88,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages code) #:use-module (gnu packages databases) + #:use-module (gnu packages dictionaries) #:use-module (gnu packages emacs) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) @@ -3076,6 +3077,59 @@ boundaries defined by syntax highlighting.") for Flow files.") (license license:gpl3+)))) +(define-public emacs-flycheck-grammalecte + (package + (name "emacs-flycheck-grammalecte") + (version "0.9") + (source (origin + (method url-fetch) + (uri (string-append "https://git.deparis.io/" + "flycheck-grammalecte/snapshot/" + "flycheck-grammalecte-" version ".tar.xz")) + (sha256 + (base32 + "0wjm9xyra870pci4bcrbnc9x66x18mi7iz08rkxa4clxv28xzryb")))) + (build-system emacs-build-system) + (arguments + `(#:include '("\\.(el|py)$") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-python + ;; Hardcode python3 executable in the Emacs library. + (lambda* (#:key inputs #:allow-other-keys) + (let ((python3 (string-append (assoc-ref inputs "python") + "/bin/python3"))) + (substitute* "flycheck-grammalecte.el" + (("python3") python3)) + #t))) + (add-after 'install 'link-to-grammalecte + ;; The package expects grammalecte to be in a sub-directory. + ;; Symlink it there from the store. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((grammalecte (assoc-ref inputs "grammalecte")) + (out (assoc-ref outputs "out")) + (version ,(version-major+minor (package-version python)))) + (with-directory-excursion + (string-append out + "/share/emacs/site-lisp/guix.d/" + "flycheck-grammalecte-" ,version) + (symlink (string-append grammalecte "/lib/" + "python" version "/site-packages/" + "grammalecte") + "grammalecte")))))))) + (inputs + `(("grammalecte" ,grammalecte) + ("python" ,python))) + (propagated-inputs + `(("emacs-flycheck" ,emacs-flycheck))) + (home-page "https://git.deparis.io/flycheck-grammalecte/") + (synopsis "Integrate Grammalecte with Flycheck") + (description "Integrate the French grammar and typography checker +Grammalecte with Flycheck to automatically look for mistakes in your +writings. It also provides an easy way to find synonyms and antonyms for +a given word (to avoid repetitions for example).") + (license license:gpl3+))) + (define-public emacs-elisp-demos (package (name "emacs-elisp-demos") -- 2.23.0 --=-=-=-- From unknown Wed Aug 20 03:37:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Sep 2019 07:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37317@debbugs.gnu.org Received: via spool by 37317-submit@debbugs.gnu.org id=B37317.156775380015754 (code B ref 37317); Fri, 06 Sep 2019 07:10:01 +0000 Received: (at 37317) by debbugs.gnu.org; 6 Sep 2019 07:10:00 +0000 Received: from localhost ([127.0.0.1]:36366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i68Nc-000462-J4 for submit@debbugs.gnu.org; Fri, 06 Sep 2019 03:10:00 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:60465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i68Na-00045t-LO for 37317@debbugs.gnu.org; Fri, 06 Sep 2019 03:09:59 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id CE967240002 for <37317@debbugs.gnu.org>; Fri, 6 Sep 2019 07:09:56 +0000 (UTC) From: Nicolas Goaziou References: <87mufipcda.fsf@nicolasgoaziou.fr> Date: Fri, 06 Sep 2019 09:09:55 +0200 In-Reply-To: <87mufipcda.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 06 Sep 2019 01:11:29 +0200") Message-ID: <87imq5q4sc.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Completing myself, Nicolas Goaziou writes: > + (add-after 'install 'link-to-grammalecte > + ;; The package expects grammalecte to be in a sub-directory. > + ;; Symlink it there from the store. > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((grammalecte (assoc-ref inputs "grammalecte")) > + (out (assoc-ref outputs "out")) > + (version ,(version-major+minor (package-version python)))) > + (with-directory-excursion > + (string-append out > + "/share/emacs/site-lisp/guix.d/" > + "flycheck-grammalecte-" ,version) > + (symlink (string-append grammalecte "/lib/" > + "python" version "/site-packages/" > + "grammalecte") > + "grammalecte")))))))) I forgot a #t here. I'll add it. I'm not sending the updated patch. > + (inputs > + `(("grammalecte" ,grammalecte) > + ("python" ,python))) > + (propagated-inputs > + `(("emacs-flycheck" ,emacs-flycheck))) > + (home-page "https://git.deparis.io/flycheck-grammalecte/") > + (synopsis "Integrate Grammalecte with Flycheck") > + (description "Integrate the French grammar and typography checker > +Grammalecte with Flycheck to automatically look for mistakes in your > +writings. It also provides an easy way to find synonyms and antonyms for Missing space here. Also fixed. From unknown Wed Aug 20 03:37:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2019 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 37317@debbugs.gnu.org Received: via spool by 37317-submit@debbugs.gnu.org id=B37317.15695322692738 (code B ref 37317); Thu, 26 Sep 2019 21:12:02 +0000 Received: (at 37317) by debbugs.gnu.org; 26 Sep 2019 21:11:09 +0000 Received: from localhost ([127.0.0.1]:45420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDb2a-0000i5-L5 for submit@debbugs.gnu.org; Thu, 26 Sep 2019 17:11:08 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:50836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDb2Y-0000hw-Eq for 37317@debbugs.gnu.org; Thu, 26 Sep 2019 17:11:06 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E24A08BDEC; Thu, 26 Sep 2019 23:11:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vWyLo9ScAbfn; Thu, 26 Sep 2019 23:11:05 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 17C178BDEB; Thu, 26 Sep 2019 23:11:05 +0200 (CEST) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87mufipcda.fsf@nicolasgoaziou.fr> Date: Thu, 26 Sep 2019 23:11:04 +0200 In-Reply-To: <87mufipcda.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 06 Sep 2019 01:11:29 +0200") Message-ID: <87ef02ix07.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Nicolas, Nicolas Goaziou skribis: >>>From d362da36f369d0bf98d49c484ce9fd6b0603b5b2 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Fri, 6 Sep 2019 01:10:10 +0200 > Subject: [PATCH] gnu: Add emacs-flycheck-grammalecte. > > * gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): New variable. LGTM, thanks! Ludo=E2=80=99. From unknown Wed Aug 20 03:37:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Goaziou Subject: bug#37317: closed (Re: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte) Message-ID: References: <87d0fl5xm4.fsf@nicolasgoaziou.fr> <87mufipcda.fsf@nicolasgoaziou.fr> X-Gnu-PR-Message: they-closed 37317 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 37317@debbugs.gnu.org Date: Fri, 27 Sep 2019 19:49:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1569613743-2950-1" This is a multi-part message in MIME format... ------------=_1569613743-2950-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37317: [PATCH] Add emacs-flyspell-grammalecte which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37317@debbugs.gnu.org. --=20 37317: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37317 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1569613743-2950-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37317-done) by debbugs.gnu.org; 27 Sep 2019 19:48:40 +0000 Received: from localhost ([127.0.0.1]:48709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDwEJ-0000ka-NT for submit@debbugs.gnu.org; Fri, 27 Sep 2019 15:48:39 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:60277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDwEH-0000kS-PO for 37317-done@debbugs.gnu.org; Fri, 27 Sep 2019 15:48:38 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E2AD0240002; Fri, 27 Sep 2019 19:48:35 +0000 (UTC) From: Nicolas Goaziou To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte References: <87mufipcda.fsf@nicolasgoaziou.fr> <87ef02ix07.fsf@gnu.org> Date: Fri, 27 Sep 2019 21:48:35 +0200 In-Reply-To: <87ef02ix07.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 26 Sep 2019 23:11:04 +0200") Message-ID: <87d0fl5xm4.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 37317-done Cc: 37317-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Ludovic Court=C3=A8s writes: > LGTM, thanks! Applied. Thank you! Regards, --=20 Nicolas Goaziou ------------=_1569613743-2950-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Sep 2019 23:11:45 +0000 Received: from localhost ([127.0.0.1]:36225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i60um-0004tf-Pv for submit@debbugs.gnu.org; Thu, 05 Sep 2019 19:11:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:46224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i60uk-0004tW-Ty for submit@debbugs.gnu.org; Thu, 05 Sep 2019 19:11:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i60uj-00070j-3k for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i60uf-0005t3-HL for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:39 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i60uc-0005ky-5P for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:35 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C29F4E0002 for ; Thu, 5 Sep 2019 23:11:30 +0000 (UTC) From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [PATCH] Add emacs-flyspell-grammalecte Date: Fri, 06 Sep 2019 01:11:29 +0200 Message-ID: <87mufipcda.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.196 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, The following patch adds emacs-flyspell-grammalecte. Feedback welcome. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-emacs-flycheck-grammalecte.patch Content-Description: Add emacs-flyspell-grammalecte >From d362da36f369d0bf98d49c484ce9fd6b0603b5b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 6 Sep 2019 01:10:10 +0200 Subject: [PATCH] gnu: Add emacs-flycheck-grammalecte. * gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): New variable. --- gnu/packages/emacs-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8f866fbc28..7ca3f8e4ca 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -88,6 +88,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages code) #:use-module (gnu packages databases) + #:use-module (gnu packages dictionaries) #:use-module (gnu packages emacs) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) @@ -3076,6 +3077,59 @@ boundaries defined by syntax highlighting.") for Flow files.") (license license:gpl3+)))) +(define-public emacs-flycheck-grammalecte + (package + (name "emacs-flycheck-grammalecte") + (version "0.9") + (source (origin + (method url-fetch) + (uri (string-append "https://git.deparis.io/" + "flycheck-grammalecte/snapshot/" + "flycheck-grammalecte-" version ".tar.xz")) + (sha256 + (base32 + "0wjm9xyra870pci4bcrbnc9x66x18mi7iz08rkxa4clxv28xzryb")))) + (build-system emacs-build-system) + (arguments + `(#:include '("\\.(el|py)$") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-python + ;; Hardcode python3 executable in the Emacs library. + (lambda* (#:key inputs #:allow-other-keys) + (let ((python3 (string-append (assoc-ref inputs "python") + "/bin/python3"))) + (substitute* "flycheck-grammalecte.el" + (("python3") python3)) + #t))) + (add-after 'install 'link-to-grammalecte + ;; The package expects grammalecte to be in a sub-directory. + ;; Symlink it there from the store. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((grammalecte (assoc-ref inputs "grammalecte")) + (out (assoc-ref outputs "out")) + (version ,(version-major+minor (package-version python)))) + (with-directory-excursion + (string-append out + "/share/emacs/site-lisp/guix.d/" + "flycheck-grammalecte-" ,version) + (symlink (string-append grammalecte "/lib/" + "python" version "/site-packages/" + "grammalecte") + "grammalecte")))))))) + (inputs + `(("grammalecte" ,grammalecte) + ("python" ,python))) + (propagated-inputs + `(("emacs-flycheck" ,emacs-flycheck))) + (home-page "https://git.deparis.io/flycheck-grammalecte/") + (synopsis "Integrate Grammalecte with Flycheck") + (description "Integrate the French grammar and typography checker +Grammalecte with Flycheck to automatically look for mistakes in your +writings. It also provides an easy way to find synonyms and antonyms for +a given word (to avoid repetitions for example).") + (license license:gpl3+))) + (define-public emacs-elisp-demos (package (name "emacs-elisp-demos") -- 2.23.0 --=-=-=-- ------------=_1569613743-2950-1--