2021-11-30 21:44:44 +00:00
|
|
|
# Contributor: Galen Abell <galen@galenabell.com>
|
|
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
|
|
pkgname=py3-fuzzywuzzy
|
|
|
|
_pyname=fuzzywuzzy
|
|
|
|
pkgver=0.18.0
|
2024-11-01 14:09:55 +00:00
|
|
|
pkgrel=7
|
2021-11-30 21:44:44 +00:00
|
|
|
pkgdesc="Fuzzy string matching in python"
|
|
|
|
url="https://github.com/seatgeek/fuzzywuzzy"
|
2023-11-24 18:27:21 +00:00
|
|
|
arch="noarch"
|
2021-11-30 21:44:44 +00:00
|
|
|
license="GPL-2.0-only"
|
2023-05-05 05:17:39 +00:00
|
|
|
depends="python3 py3-levenshtein"
|
2024-11-01 14:09:55 +00:00
|
|
|
makedepends="py3-setuptools py3-gpep517"
|
2023-05-05 05:17:39 +00:00
|
|
|
checkdepends="py3-pytest py3-pycodestyle py3-hypothesis"
|
|
|
|
subpackages="$pkgname-pyc"
|
2021-11-30 21:44:44 +00:00
|
|
|
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
|
|
|
|
build() {
|
2024-11-01 14:09:55 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir .dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2024-11-01 14:09:55 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
|
|
.testenv/bin/python3 -m pytest
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-11-01 14:09:55 +00:00
|
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
|
|
.dist/*.whl
|
2021-11-30 21:44:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 05:17:39 +00:00
|
|
|
sha512sums="
|
|
|
|
4a21ea67278fa525842d48fed8db666d00eae6d13254e8844d11f63b47c3a305b3cac760f28c24c6347aebcf73e96180e0a7cfba29c75f01ece2f7751e0398c5 fuzzywuzzy-0.18.0.tar.gz
|
|
|
|
"
|