OCaml 4.14.0 rebuild
[arch-packages.git] / python-cssselect / trunk / PKGBUILD
blobaf04cbc49abce29ad7041ce97e036c49006b4e0e
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
4 pkgname=python-cssselect
5 pkgver=1.1.0
6 pkgrel=9
7 license=('BSD')
8 arch=('any')
9 url="https://pypi.python.org/pypi/cssselect"
10 pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
11 depends=('python')
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')
17 build() {
18   cd cssselect-$pkgver
19   python setup.py build
22 check() {
23   cd cssselect-$pkgver
24   python setup.py pytest
27 package() {
28   cd cssselect-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/