# Contributor: Newbyte # Maintainer: Newbyte pkgname=py3-html-sanitizer pkgver=2.2 pkgrel=0 pkgdesc="Allowlist-based and opinionated HTML sanitizer" url="https://github.com/matthiask/html-sanitizer" arch="noarch" license="BSD-3-Clause" depends=" py3-lxml python3 " makedepends=" py3-beautifulsoup4 py3-gpep517 py3-hatchling py3-installer py3-wheel " checkdepends=" py3-tox " subpackages="$pkgname-pyc" source="html-sanitizer-$pkgver.tar.gz::https://github.com/matthiask/html-sanitizer/archive/$pkgver.tar.gz" builddir="$srcdir/html-sanitizer-$pkgver" options="!check" # fail with new beautifulsoup in diff build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { tox -e tests --sitepackages } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 4eb793be2dfbe2631bdee149bc4a97cdfc241d020172f20883aaf2c2093c7537755e052aa29bc7da8aadb74f368c06350056d0c360bee58cf0eee948948137a0 html-sanitizer-2.2.tar.gz "