backports/py3-levenshtein: upgrade to 0.21.0
This commit is contained in:
parent
c4e8521c62
commit
859f961d5f
1 changed files with 32 additions and 12 deletions
|
@ -1,25 +1,45 @@
|
|||
# Contributor: Galen Abell <galen@galenabell.com>
|
||||
# Maintainer: Galen Abell <galen@galenabell.com>
|
||||
pkgname=py3-levenshtein
|
||||
_pyname=python-Levenshtein
|
||||
pkgver=0.12.2
|
||||
pkgrel=2
|
||||
pkgver=0.21.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python extension for computing string edit distances and similarities"
|
||||
url="https://github.com/ztane/python-Levenshtein"
|
||||
url="https://github.com/maxbachmann/Levenshtein"
|
||||
arch="all"
|
||||
license="GPL-2.0-only"
|
||||
options="!check" # no tests
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools python3-dev"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pyname-$pkgver"
|
||||
depends="python3 py3-rapidfuzz"
|
||||
makedepends="
|
||||
cmake
|
||||
cython
|
||||
py3-gpep517
|
||||
py3-scikit-build
|
||||
python3-dev
|
||||
rapidfuzz
|
||||
samurai
|
||||
"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/maxbachmann/Levenshtein/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/Levenshtein-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||
testenv/bin/python3 -m installer \
|
||||
dist/Levenshtein*.whl
|
||||
testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/Levenshtein*.whl
|
||||
}
|
||||
|
||||
sha512sums="97eac9d19121758af7620ad3963846e48434ceabb5376a83f28452015adf1a620620bfb53edb1c4f60b0fc8ec2b0faf35a105d7e2a0fc5df7a45fce81ba0dcdb python-Levenshtein-0.12.2.tar.gz"
|
||||
sha512sums="
|
||||
6014e16caadb985bf5692320d15ec531910ce02f63ad7e6765049c6b51482010c30a4b2e924dcc11f1912b19c39828572870c9bd173de3f786ecc5f5c321f924 py3-levenshtein-0.21.0.tar.gz
|
||||
"
|
||||
|
|
Loading…
Add table
Reference in a new issue