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