# Contributor: Celeste # Maintainer: Celeste pkgname=py3-mf2py pkgver=1.1.3 pkgrel=0 pkgdesc="Python Microformats2 parser" url="https://microformats.github.io/mf2py/" arch="noarch" license="MIT" depends=" py3-beautifulsoup4 py3-html5lib py3-requests " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-lxml py3-mock py3-nose " subpackages="$pkgname-pyc" source="https://github.com/microformats/mf2py/archive/v$pkgver/py3-mf2py-$pkgver.tar.gz" builddir="$srcdir/mf2py-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m nose --processes="${JOBS:-1}" } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 4dadc3f54f66da73d42844b3d785953639df1186962aa5b56f89dda1f2719c1b0ffb251aa7358079e0275e446ed3266fbeea06743e67e5416cbff8133833f985 py3-mf2py-1.1.3.tar.gz "