# Contributor: Drew DeVault # Maintainer: Drew DeVault pkgname=py3-cssselect2 _pyname=cssselect2 pkgver=0.2.2 pkgrel=0 pkgdesc="CSS selectors for Python ElementTree" url="https://pypi.org/projects/cssselect2/" arch="noarch" license="BSD-3-Clause" depends="py3-tinycss2" makedepends="py3-setuptools py3-pytest py3-pytest-cov" _pypiprefix="${_pyname%${_pyname#?}}" source=" https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz tests.patch " builddir="$srcdir"/$_pyname-$pkgver build() { python3 setup.py build } check() { python3 setup.py pytest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="1f11077c6e28f52a1c370c1f3d5fa1156f74b390298323889230304ede6c23a2f2b78c63026f5d84e67518a21fc8df3484577bc77fcf19cb97a84c2a7f28d355 cssselect2-0.2.2.tar.gz 9300b2ed735ec35caec7c2330c7649527628c7bc894557b8c0d01c613a50cd846f7b186aff04a58d1ee720016aa605be17e9c1fec7801785972d9aa5f4604a5f tests.patch"