archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-cssselect / repos / extra-any / PKGBUILD
blob2ada2e278aca521eded772993a2ab551d47c9905
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.2.0
6 pkgrel=3
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' 'python-lxml' 'python-sybil')
14 source=("https://github.com/scrapy/cssselect/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('439f83e37c381f962abcfca0b83050372cbad44179e876591d8504abc2da1d4fe80891c8c8e1763341cf152525259565dc5e80038fa7c14e8c69f22a11f83d94')
17 build() {
18   cd cssselect-$pkgver
19   python setup.py build
22 check() {
23   cd cssselect-$pkgver
24   pytest
27 package() {
28   cd cssselect-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/