# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-rapidfuzz-capi
pkgver=1.0.5
pkgrel=5
pkgdesc="C-API of RapidFuzz, which can be used to extend RapidFuzz from separate packages"
url="https://github.com/maxbachmann/rapidfuzz_capi"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/maxbachmann/rapidfuzz_capi/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/rapidfuzz_capi-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/rapidfuzz_capi*.whl
}

sha512sums="
b62c6fdd0e5d0804f7c1ef6f6b5e007afd8439720071fbdf1440232c62925e794a6ae33774a33ef745ebbd4ef956a85d2bf60934a7d568d39d1e590467f26bcf  py3-rapidfuzz-capi-1.0.5.tar.gz
"
