# Contributor: prspkt # Maintainer: prspkt pkgname=py3-protego pkgver=0.2.1 pkgrel=1 pkgdesc="Pure-Python robots.txt parser with support for modern conventions" url="https://github.com/scrapy/protego" arch="noarch" license="BSD-3-Clause" depends="python3 py3-six" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz" builddir="$srcdir/Protego-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" ef61c6188ab983445e8041e9382b1320695c3041fbc26d20b460bff15f497ca035cd1fab82ce35153098c3679272203c01c1f0948461ea354b0492fee4253255 Protego-0.2.1.tar.gz "