# Maintainer: Kimiblock Moe

pkgname=synapse-http-antispam
pkgdesc="A Synapse module that forwards spam checking to an HTTP server."
url="https://github.com/maunium/synapse-http-antispam"
license=(MIT)
arch=(any)
pkgver=0.5.0
pkgrel=15
makedepends=(python-build python-installer python-wheel git python-hatchling)
depends=(python python-twisted matrix-synapse)
source=(
	"git+https://github.com/maunium/synapse-http-antispam.git#tag=v${pkgver}"
)

#function prepare() {}

function build() {
	cd "${srcdir}/${pkgname}"
	python -m build --wheel --no-isolation
}

function package() {
	cd "${srcdir}/${pkgname}"
	python -m installer --destdir="${pkgdir}" dist/*.whl
}

sha256sums=('9b02b1bdf8d28be1bbd823b654269a5647e8e407292b310a693e7733d85059b1')
