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' 'python-lxml' 'python-sybil')
14 source=("https://github.com/scrapy/cssselect/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('439f83e37c381f962abcfca0b83050372cbad44179e876591d8504abc2da1d4fe80891c8c8e1763341cf152525259565dc5e80038fa7c14e8c69f22a11f83d94')
29 python setup.py install --root="$pkgdir" --optimize=1
30 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/