gnu: python-textdistance: Update to 4.6.3.

* gnu/packages/python-xyz.scm (python-textdistance): Update to
4.6.3. Fix build.
[build-system]: Swap to pyproejct-build-system.
[arguments]<phases>: Remove 'delete-external-test.
[propagated-inputs]: Add python-jellyfish, python-distance,
python-levenshtein, python-pylev, python-pyxdameraulevenshtein, and
python-rapidfuzz.
[native-inputs]: Remove python-hypothesis, python-isort,
python-pytest-runner, and python-tabulate; add python-pytest-xdist,
python-setuptools, and python-wheel.

Change-Id: I4dae8d535897a1444123ea22603079184435bb5f
This commit is contained in:
Sharlatan Hellseher 2024-12-18 01:44:57 +00:00
parent e8a8c5a13e
commit 97cb3321c7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -13674,34 +13674,35 @@ supports @code{readline} shortcuts.")
(define-public python-textdistance (define-public python-textdistance
(package (package
(name "python-textdistance") (name "python-textdistance")
(version "4.2.1") (version "4.6.3")
(source (source
(origin (origin
;; There are no tests in the PyPI tarball. ;; There are no tests in the PyPI tarball.
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/life4/textdistance") (url "https://github.com/life4/textdistance")
(commit (string-append "v." version)))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1g17i356fnny4k6hjr2ayy9k77jbvd6zzmngws2kbrnvhss1wgwf")))) (base32 "1qaplikab46p38jqr93bxd26vvxcnvib15fjxmmp4cbsiy5196sg"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:test-target "pytest" (list
#:phases #:test-flags
(modify-phases %standard-phases #~(list "--numprocesses" (number->string (parallel-job-count)))))
(add-after 'unpack 'delete-external-test
(lambda _
;; All tests in this file require external libraries.
(delete-file "tests/test_external.py")
#t)))))
(native-inputs (native-inputs
(list python-hypothesis (list python-numpy
python-isort
python-numpy
python-pytest python-pytest
python-pytest-runner python-pytest-xdist
python-tabulate)) python-setuptools
python-wheel))
(propagated-inputs
(list python-jellyfish
python-distance
python-levenshtein
python-pylev
python-pyxdameraulevenshtein
python-rapidfuzz))
(home-page "https://github.com/life4/textdistance") (home-page "https://github.com/life4/textdistance")
(synopsis "Compute distance between the two texts") (synopsis "Compute distance between the two texts")
(description "@code{textdistance} is a pure Python library for comparing (description "@code{textdistance} is a pure Python library for comparing