aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Elwin <elwin@northwestern.edu>2025-04-29 15:26:28 -0500
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-01 12:29:19 +0100
commit3cecec63c5762efa037d2b7885366ac20990b97c (patch)
treefb7f4b65f688ee814fea4681e382d1bd01a76b2b
parent16297f12db919a9db1c767a2c374859b16077451 (diff)
downloadguix-3cecec63c5762efa037d2b7885366ac20990b97c.tar.gz
guix-3cecec63c5762efa037d2b7885366ac20990b97c.zip
gnu: Add python-scspell3k.
* gnu/packages/python-xyz.scm (python-scspell3k): New variable. Change-Id: Ia7e7d9cceba1391eee9278ab722bcdd4283c1354 Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-check.scm44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b9f7e57fc4..518282921e 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3360,6 +3360,50 @@ manipulating JSON Object. You can manipulate your JSON object using JSONPath")
;; This is free and unencumbered software released into the public domain.
(license license:unlicense)))
+(define-public python-scspell3k
+ (let ((commit "df550351f255c572c1a74852d233c83bbfbd49fb")
+ (revision "0"))
+ (package
+ (name "python-scspell3k")
+ (version (git-version "2.3.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/myint/scspell")
+ (commit commit)))
+ (sha256
+ (base32 "0d7yhja9hrw4w7vm10h56hm1dqyhrnwia7wzc3ap9f15ldkkp9cs"))
+ (file-name (git-file-name name version))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-project-license
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("\"GPL-2.0-only\"")
+ "{ text = \"GPL-2.0-only\" }"))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp")))
+ (add-after 'check 'run-cram-tests
+ (lambda _
+ (invoke "cram" "--indent=4" "--verbose" "./test.cram"))))))
+ (native-inputs
+ (list python-cram
+ python-pytest
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/myint/scspell")
+ (synopsis "Conservative interactive spell checker for source code")
+ (description
+ "This package implements a spell checker for source code that does not
+try to be particularly smart and instead does the simplest thing that can
+possibly work.")
+ (license license:gpl2))))
+
(define-public python-slotscheck
(package
(name "python-slotscheck")