summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-02-14 23:50:22 +0900
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-26 06:35:28 +0100
commit3dc27a16853cf84ec5f0f81f2aaf6da06a25e8dd (patch)
tree920daad3a16b38c91c5e5100c5792c6fdb83b6ce
parent4d8ed6c63ab170808b1fe9782c98f1f7eef8d53f (diff)
gnu: Add python-thefuzz.
* gnu/packages/python-xyz.scm (python-thefuzz): New variable. Change-Id: Ie732ad67bf5db39259d0624579eeefdf7b02cacf Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b224d7a6028..5fb839e6c85 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -37415,6 +37415,39 @@ for Python inspired by modern web development.")
be used to act both as a TFTP client or TFTP server.")
(license license:expat)))
+(define-public python-thefuzz
+ (package
+ (name "python-thefuzz")
+ (version "0.22.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/seatgeek/thefuzz")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1l24masn3ilfnwdasi5bhs1vb3ll1nqzxljiasdhfly1ncfjyvca"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~'("-k" "not TestCodeFormat")
+ #:phases #~(modify-phases %standard-phases
+ ;; pycodestyle is only used in TestCodeFormat.
+ (add-after 'unpack 'unrequire-pycodestyle
+ (lambda _
+ (substitute* "test_thefuzz.py"
+ (("import pycodestyle.*") "")))))))
+ (propagated-inputs (list python-rapidfuzz))
+ (native-inputs (list python-hypothesis
+ python-pytest
+ python-setuptools))
+ (home-page "https://github.com/seatgeek/thefuzz")
+ (synopsis "Fuzzy string matching in Python")
+ (description
+ "This Python package implements fuzzing string matching
+using Levenshtein distance.")
+ (license license:expat)))
+
(define-public python-three-merge
(package
(name "python-three-merge")