# Contributor: Rasmus Thomsen # Maintainer: Natanael Copa pkgname=py3-listparser pkgver=0.20 pkgrel=0 pkgdesc="Parse OPML, FOAF, and iGoogle subscription lists" url="https://github.com/kurtmckee/listparser" arch="noarch" license="GPL-3.0-or-later" depends="python3 py3-lxml py3-requests" makedepends="py3-gpep517 py3-poetry-core py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" # Using GitHub source as PyPI tarball does not include tests directory source="https://github.com/kurtmckee/listparser/archive/v$pkgver/listparser-v$pkgver.tar.gz" builddir="$srcdir/listparser-$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 pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" f288f584eb592733130def27356b67f37f852f452b131f180fab59d1434f937cbd753610dcca5d2054a596494e8bbf5a9445bc857113f3d2cb6faac39b5285f1 listparser-v0.20.tar.gz "