# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=py3-pandocfilters
pkgver=1.5.1
pkgrel=2
pkgdesc="Python module for writing pandoc filters"
url="https://github.com/jgm/pandocfilters"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # no test suite
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jgm/pandocfilters/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/pandocfilters-$pkgver"

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

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

sha512sums="
4a27dcabc1c59dd4081c074c7f8d1046e6d87cfde2f261575f04f86c475349076f38bed1b46439164fa8a315908cc88613f79d76abe53f4cf71a4dfb5fc99cfa  py3-pandocfilters-1.5.1.tar.gz
"
