# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-akismet
pkgver=24.11.0
pkgrel=0
pkgdesc="A Python interface to the Akismet spam-filtering service"
url="https://akismet.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-httpx"
makedepends="py3-gpep517 py3-pdm-backend py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
options="!check"
source="https://files.pythonhosted.org/packages/source/a/akismet/akismet-$pkgver.tar.gz"
builddir="$srcdir/akismet-$pkgver"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 1
}

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

sha512sums="
b44f96f3efb100fadae7c6c3f0dee9e4309ac6c94b5c74ef0e6484aaa14e110dc898c41a25e27080454a6f96f1752ad93fc439c583c7062fda3b5427450a2357  akismet-24.11.0.tar.gz
"
