# Contributor: prspkt # Maintainer: prspkt pkgname=py3-cssselect _pkgname=cssselect pkgver=1.0.3 pkgrel=0 pkgdesc="Library for parsing CSS3 selectors and translating them to XPath 1.0" url="https://github.com/scrapy/cssselect" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest py3-lxml" source="$_pkgname-$pkgver.tar.gz::https://github.com/scrapy/cssselect/archive/v$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { python3 setup.py build } check() { py.test-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="08feb3a515cc75089657a508cd1a80c6aaa97d710f27e99f9e749a1519adc13c5540134c6a4e0d7f548b022b8bd23dcbe360530d2329c5da36e43aca1f9627d1 cssselect-1.0.3.tar.gz"