GNU bug report logs - #78138
[PATCH] gnu: Add python-scspell3k.

Previous Next

Package: guix-patches;

Reported by: Matthew Elwin <elwin <at> northwestern.edu>

Date: Tue, 29 Apr 2025 14:29:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Matthew Elwin <elwin <at> northwestern.edu>
To: guix-patches <at> gnu.org
Cc: Matthew Elwin <elwin <at> northwestern.edu>
Subject: [PATCH] gnu: Add python-scspell3k.
Date: Tue, 29 Apr 2025 09:27:36 -0500
* gnu/packages/python-xyz.scm (python-scspell3k): New variable.

Change-Id: If16df188d7d17e892cfa434d8c3e8dbe7135e271
---
 .../python-scspell3k-pyproject-license.patch  | 16 +++++++++++++
 gnu/packages/python-xyz.scm                   | 24 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 gnu/packages/patches/python-scspell3k-pyproject-license.patch

diff --git a/gnu/packages/patches/python-scspell3k-pyproject-license.patch b/gnu/packages/patches/python-scspell3k-pyproject-license.patch
new file mode 100644
index 0000000000..5bdccdcf02
--- /dev/null
+++ b/gnu/packages/patches/python-scspell3k-pyproject-license.patch
@@ -0,0 +1,16 @@
+diff -urN scspell3k-2.3.0/pyproject.toml scspell3k-2.3.0-patched/pyproject.toml
+--- scspell3k-2.3.0/pyproject.toml	2025-04-06 12:29:17.000000000 -0500
++++ scspell3k-2.3.0-patched/pyproject.toml	2025-04-29 09:10:39.804229321 -0500
+@@ -9,9 +9,11 @@
+ description = "A conservative interactive spell checker for source code."
+ 
+ version = "2.3.0"
+-license = "GPL-2.0-only"
+ readme  = "README.rst"
+ 
++[project.license]
++text = "GPL-2.0-only"
++
+ classifiers = [
+     'Development Status :: 4 - Beta',
+     'Environment :: Console',
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 23563e57ce..7a72d3ff31 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -163,6 +163,7 @@
 ;;; Copyright © 2025 Dariqq <dariqq <at> posteo.net>
 ;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx <at> disroot.org>
 ;;; Copyright © 2025, Cayetano Santos <csantosb <at> inventati.org>
+;;; Copyright © 2025, Matthew Elwin <elwin <at> northwestern.edu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -816,6 +817,29 @@ (define-public python-pyxdameraulevenshtein
 edit distance algorithm for Python in Cython for high performance.")
     (license license:bsd-3)))
 
+(define-public python-scspell3k
+  (package
+    (name "python-scspell3k")
+    (version "2.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "scspell3k" version))
+       (sha256
+        (base32 "012xhmz3an7b2s9kwkdsxlnwiqjj64sy5kxp5kffa3gzjcai7qgv"))
+       (patches (search-patches "python-scspell3k-pyproject-license.patch"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (native-inputs (list python-setuptools python-wheel))
+    (home-page "https://pypi.org/project/scspell3k/")
+    (synopsis "Conservative interactive spell checker for source code")
+    (description
+     "A spell checker for source code that does not try to be particularly smart
+and instead does the simplest thign that can possibly work.")
+    (license license:gpl2)))
+
 (define-public python-shxparser
   (package
     (name "python-shxparser")

base-commit: fbf766295710078b5cd2e8810459908d9f777442
-- 
2.43.0





This bug report was last modified 16 days ago.

Previous Next


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