summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-24 23:33:00 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:37:03 +0100
commitbdf0b56b8582b5d0b9ce40dd4580e3dfbf508eee (patch)
treeefefafa5cd9490f20987381a4fbc10c36223b591 /gnu/packages/python-xyz.scm
parentf9fc9c1d4eb001b93e051fac965255950e31a525 (diff)
gnu: python-distance: Update to 0.1.3-0.ad7f9dc.
* gnu/packages/python-xyz.scm (python-distance): Update to 0.1.3-0.ad7f9dc. [source]: Switch to git-fetch. [arguments]: Set <#:test-backend> and <#:test-flags>. [native-inputs]: Remove python-wheel. Change-Id: I76fdce7caa7cff779ef6df60dd3969aea57be5d5 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm42
1 files changed, 24 insertions, 18 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6dd53151c9..bbc9d9738e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -770,27 +770,33 @@ fullscreen terminal rendering, and keyboard input event reporting.")
(license license:expat)))
(define-public python-distance
- (package
- (name "python-distance")
- (version "0.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Distance" version))
- (sha256
- (base32 "0la51nzzqrkisshwbk2wpviisqqzylwkz9qsa9f3y05nyn27b030"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-setuptools
- python-wheel))
- (home-page "https://github.com/doukremt/distance")
- (synopsis "Utilities for comparing sequences")
- (description
- "This package provides helpers for computing similarities between
+ (let ((commit "ad7f9dc7e9b0e88a08d0cefd1442f4ab1dd1779b")
+ (revision "0"))
+ (package
+ (name "python-distance")
+ (version (git-version "0.1.3" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/doukremt/distance")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vcn0506dy68xyjxdjsl75zzc4b8lmg2yxjgak4i35l7a97yzvwy"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests/tests.py")))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/doukremt/distance")
+ (synopsis "Utilities for comparing sequences")
+ (description
+ "This package provides helpers for computing similarities between
arbitrary sequences. Included metrics are Levenshtein, Hamming, Jaccard, and
Sorensen distance, plus some bonuses. All distance computations are
implemented in pure Python, and most of them are also implemented in C.")
- (license license:gpl2+)))
+ (license license:gpl2+))))
(define-public python-domdf-python-tools
(package