[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/13: gnu: Add python-textdistance.
From: |
guix-commits |
Subject: |
01/13: gnu: Add python-textdistance. |
Date: |
Sat, 8 May 2021 05:28:51 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 796f7cabdb5d71e217a760b4d122147cd9c74993
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Tue Apr 20 05:22:26 2021 +0000
gnu: Add python-textdistance.
* gnu/packages/python-xyz.scm (python-textdistance): New variable.
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e4f1a82..f2437f3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8048,6 +8048,43 @@ features useful for text console applications.")
supports @code{readline} shortcuts.")
(license license:expat)))
+(define-public python-textdistance
+ (package
+ (name "python-textdistance")
+ (version "4.2.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/life4/textdistance")
+ (commit (string-append "v." version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1g17i356fnny4k6hjr2ayy9k77jbvd6zzmngws2kbrnvhss1wgwf"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:test-target "pytest"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-external-test
+ (lambda _
+ ;; All tests in this file require external libraries.
+ (delete-file "tests/test_external.py")
+ #t)))))
+ (native-inputs
+ `(("python-hypothesis" ,python-hypothesis)
+ ("python-isort" ,python-isort)
+ ("python-numpy" ,python-numpy)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-runner" ,python-pytest-runner)
+ ("python-tabulate" ,python-tabulate)))
+ (home-page "https://github.com/life4/textdistance")
+ (synopsis "Compute distance between the two texts")
+ (description "@code{textdistance} is a pure Python library for comparing
+distance between two or more sequences by many algorithms.")
+ (license license:expat)))
+
(define-public python-urwidtrees
(package
(name "python-urwidtrees")
- branch master updated (a9a67da -> dd05a93), guix-commits, 2021/05/08
- 01/13: gnu: Add python-textdistance.,
guix-commits <=
- 02/13: gnu: Add python-three-merge., guix-commits, 2021/05/08
- 03/13: gnu: Add python-pyls-black., guix-commits, 2021/05/08
- 04/13: gnu: Add python-tinycss., guix-commits, 2021/05/08
- 05/13: gnu: Add python-qstylizer., guix-commits, 2021/05/08
- 08/13: gnu: Add python-qtsass., guix-commits, 2021/05/08
- 07/13: gnu: Add python-pytest-qt., guix-commits, 2021/05/08
- 10/13: gnu: Add python-entrypoint2., guix-commits, 2021/05/08
- 11/13: gnu: Add python-pyvirtualdisplay., guix-commits, 2021/05/08
- 06/13: gnu: python-language-server: Enable tests., guix-commits, 2021/05/08
- 12/13: gnu: Add python-pytest-xvfb., guix-commits, 2021/05/08