1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
4 pkgname=python-cssselect
9 url="https://pypi.python.org/pypi/cssselect"
10 pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest-runner' 'python-lxml')
14 source=("https://github.com/scrapy/cssselect/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('b33bca6a026f4de37b75606fd238dbd170b57d06288fbff3ea97ce79685a99af275fb8522b04ea9d6693aba5a18541d70b657191fdad881be79718bcf2e7655c')
24 python setup.py pytest
29 python setup.py install --root="$pkgdir" --optimize=1
31 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/