summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-02-15 04:36:37 -0500
committerLeo Famulari <leo@famulari.name>2016-03-18 14:27:16 -0400
commit25a7db0ad32d0863fbb648a93699b034bd9fce0b (patch)
tree0f245825673f59b7aca1f66ea96f7b91f691cb1c /gnu/packages/python.scm
parentefe0b14369106561ae13a5de270fb922415c6237 (diff)
gnu: Add python-jellyfish.
* gnu/packages/python.scm (python-jellyfish, python2-jellyfish): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cff82fa198e..4ea2064df61 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8383,3 +8383,31 @@ ambiguities (forward vs. backward slashes, etc.).
8383 8383
8384(define-public python2-pathlib 8384(define-public python2-pathlib
8385 (package-with-python2 python-pathlib)) 8385 (package-with-python2 python-pathlib))
8386
8387(define-public python-jellyfish
8388 (package
8389 (name "python-jellyfish")
8390 (version "0.5.3")
8391 (source (origin
8392 (method url-fetch)
8393 (uri (pypi-uri "jellyfish" version))
8394 (sha256
8395 (base32
8396 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
8397 (build-system python-build-system)
8398 (native-inputs
8399 `(("python-pytest" ,python-pytest)))
8400 (home-page "https://github.com/jamesturk/jellyfish")
8401 (synopsis "Approximate and phonetic matching of strings")
8402 (description "Jellyfish uses a variety of string comparison and phonetic
8403encoding algorithms to do fuzzy string matching.")
8404 (license bsd-2)
8405 (properties `((python2-variant . ,(delay python2-jellyfish))))))
8406
8407(define-public python2-jellyfish
8408 (let ((jellyfish (package-with-python2
8409 (strip-python2-variant python-jellyfish))))
8410 (package (inherit jellyfish)
8411 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8412 ("python2-unicodecsv" ,python2-unicodecsv)
8413 ,@(package-native-inputs jellyfish))))))