GNU bug report logs - #54924
[PATCH 0/3] gnu: add emacs-flymake-proselint and dependencies

Previous Next

Package: guix-patches;

Reported by: Jai Vetrivelan <jaivetrivelan <at> gmail.com>

Date: Thu, 14 Apr 2022 06:56:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54924 in the body.
You can then email your comments to 54924 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#54924; Package guix-patches. (Thu, 14 Apr 2022 06:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jai Vetrivelan <jaivetrivelan <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 14 Apr 2022 06:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: Subject: [PATCH 0/3] gnu: add emacs-flymake-proselint and dependencies
Date: Thu, 14 Apr 2022 12:25:43 +0530
Hello, this patch series adds the flymake-proselint package which
depends on proselint. Proselint requires python-click <9.0.0, >=8.0.0,
so I've added version 8 of python-click.

Builds successfully on Guix System x86_64. Feedback Welcome.

Jai Vetrivelan (3):
  gnu: Add python-click-8.
  gnu: add python-proselint.
  gnu: Add emacs-flymake-proselint.

 gnu/packages/emacs-xyz.scm  | 35 ++++++++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)


base-commit: 5743d505834a8b13778da2c969ea4e15bb7a3a75
-- 
2.34.0




Information forwarded to guix-patches <at> gnu.org:
bug#54924; Package guix-patches. (Thu, 14 Apr 2022 07:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 54924 <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: 54924 <at> debbugs.gnu.org
Cc: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Subject: [PATCH 1/3] gnu: Add python-click-8.
Date: Thu, 14 Apr 2022 12:30:28 +0530
* gnu/packages/python-xyz.scm (python-click-8): New variable.
---
 gnu/packages/python-xyz.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 36e4fe5898..f98dd29083 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3508,6 +3508,18 @@ (define-public python-click-5
         (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
     (arguments `())))
 
+(define-public python-click-8
+  (package (inherit python-click)
+    (name "python-click")
+    (version "8.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "click" version))
+       (sha256
+        (base32 "0whs38a2i0561kwbgigs6vic9r0a1887m2v1aw3rmv6r2kz0g5s7"))))
+    (arguments `())))
+
 (define-public python-cligj
   (package
     (name "python-cligj")
-- 
2.34.0





Information forwarded to guix-patches <at> gnu.org:
bug#54924; Package guix-patches. (Thu, 14 Apr 2022 07:01:03 GMT) Full text and rfc822 format available.

Message #11 received at 54924 <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: 54924 <at> debbugs.gnu.org
Cc: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Subject: [PATCH 2/3] gnu: add python-proselint.
Date: Thu, 14 Apr 2022 12:30:29 +0530
* gnu/packages/python-xyz.scm (python-proselint): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f98dd29083..cde4abbcf7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -118,6 +118,7 @@
 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev <at> posteo.org>
 ;;; Copyright © 2022 Evgeny Pisemsky <evgeny <at> pisemsky.com>
 ;;; Copyright © 2022 drozdov <drozdov <at> portalenergy.tech>
+;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -17196,6 +17197,33 @@ (define-public python-prompt-toolkit
     (license license:bsd-3)
     (properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
 
+(define-public python-proselint
+  (package
+   (name "python-proselint")
+   (version "0.13.0")
+   (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "proselint" version))
+      (sha256
+       (base32
+        "0n1ahnq2mkgvh94g05xhc3l1fs3hh0ycskqlqivhhfdaq8ybdlkx"))))
+   (build-system python-build-system)
+   (arguments
+    `(#:tests? #f
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'set-home-directory
+          (lambda _ (setenv "HOME" "/tmp") #t)))))
+   (propagated-inputs
+    (list python-click-8 python-future python-six))
+   (home-page
+    "http://github.com/amperser/proselint")
+   (synopsis "Linter for prose")
+   (description "@code{python-proselint} is a linter for English prose, that scans through a
+file and detects issues.")
+   (license license:bsd-3)))
+
 (define-public python-prompt-toolkit-2
   (package (inherit python-prompt-toolkit)
     (name "python-prompt-toolkit")
-- 
2.34.0





Information forwarded to guix-patches <at> gnu.org:
bug#54924; Package guix-patches. (Thu, 14 Apr 2022 07:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 54924 <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: 54924 <at> debbugs.gnu.org
Cc: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Subject: [PATCH 3/3] gnu: Add emacs-flymake-proselint.
Date: Thu, 14 Apr 2022 12:30:30 +0530
* gnu/packages/emacs-xyz.scm (emacs-flymake-proselint): New variable.
---
 gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 005f34e569..bc96813754 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6120,6 +6120,41 @@ (define-public emacs-flycheck-package
 files which are intended to be packages.")
     (license license:gpl3+)))
 
+(define-public emacs-flymake-proselint
+  (let ((commit "6a99865c7ac6474b8c5d1f9a1ae2384667f06d36")
+        (revision "0"))
+   (package
+     (name "emacs-flymake-proselint")
+     (version (git-version "0.2.3" revision commit))
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://git.sr.ht/~manuel-uberti/flycheck-proselint")
+                     (commit commit)))
+               (file-name (git-file-name name version))
+               (sha256
+                (base32
+                 "028ilp9h22rlawlh5ydiykvi8pryyknwi019sjyxkk2h0fza9jan"))))
+     (build-system emacs-build-system)
+     (arguments
+      (list
+       #:phases
+       #~(modify-phases %standard-phases
+           (add-after 'unpack 'patch-exec-paths
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "flymake-proselint.el"
+                 (("\"proselint\"")
+                  (string-append
+                   "\"" (search-input-file inputs "/bin/proselint") "\""))))))))
+     (propagated-inputs
+      (list emacs-flycheck))
+     (inputs
+      (list python-proselint))
+     (home-page "https://git.sr.ht/~manuel-uberti/flycheck-proselint")
+     (synopsis "Flymake backend for @code{proselint}")
+     (description "This package adds support for @code{proselint} in Flymake.")
+     (license license:gpl3+))))
+
 (define-public emacs-elisp-demos
   (package
     (name "emacs-elisp-demos")
-- 
2.34.0





Changed bug title to '[PATCH 0/3] gnu: add emacs-flymake-proselint and dependencies' from 'Subject: [PATCH 0/3] gnu: add emacs-flymake-proselint and dependencies' Request was from Jai Vetrivelan <jaivetrivelan <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 14 Apr 2022 08:21:01 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 08 May 2022 22:03:01 GMT) Full text and rfc822 format available.

Notification sent to Jai Vetrivelan <jaivetrivelan <at> gmail.com>:
bug acknowledged by developer. (Sun, 08 May 2022 22:03:02 GMT) Full text and rfc822 format available.

Message #21 received at 54924-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Cc: 54924-done <at> debbugs.gnu.org
Subject: Re: bug#54924: [PATCH 0/3] gnu: add emacs-flymake-proselint and
 dependencies
Date: Mon, 09 May 2022 00:02:19 +0200
Hi,

Jai Vetrivelan <jaivetrivelan <at> gmail.com> skribis:

>   gnu: Add python-click-8.
>   gnu: add python-proselint.
>   gnu: Add emacs-flymake-proselint.

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Jun 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.