From 3dc27a16853cf84ec5f0f81f2aaf6da06a25e8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sat, 14 Feb 2026 23:50:22 +0900 Subject: [PATCH] gnu: Add python-thefuzz. * gnu/packages/python-xyz.scm (python-thefuzz): New variable. Change-Id: Ie732ad67bf5db39259d0624579eeefdf7b02cacf Signed-off-by: Liliana Marie Prikler --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b224d7a602..5fb839e6c8 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")