guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/20: gnu: Add python-proselint.


From: guix-commits
Subject: 14/20: gnu: Add python-proselint.
Date: Sun, 8 May 2022 18:08:40 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 4f3fd912a7bfcc8dd8bbcdfa1df7b7b58dc05746
Author: Jai Vetrivelan <jaivetrivelan@gmail.com>
AuthorDate: Thu Apr 14 12:30:29 2022 +0530

    gnu: Add python-proselint.
    
    * gnu/packages/python-xyz.scm (python-proselint): New variable.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 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 5221b29bd7..eea67eec46 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -120,6 +120,7 @@
 ;;; Copyright © 2022 drozdov <drozdov@portalenergy.tech>
 ;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
 ;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com>
+;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -17168,6 +17169,33 @@ characters, mouse support, and auto suggestions.")
     (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"))))))
+    (propagated-inputs
+     (list python-click-8 python-future python-six))
+    (home-page "https://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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]