archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-parsel / repos / community-any / PKGBUILD
bloba27ea60d3ab9c31035096cf18a66bf0e94303379
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-parsel
4 pkgver=1.7.0
5 pkgrel=2
6 pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
7 arch=('any')
8 license=('BSD')
9 url="https://github.com/scrapy/parsel"
10 depends=('python-cssselect' 'python-lxml' 'python-setuptools' 'python-six' 'python-w3lib')
11 makedepends=('python-pytest-runner')
12 checkdepends=('python-sybil' 'python-psutil')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
14 sha512sums=('669dc5a25f488dbf789ecc4b3e055488ac8040427375b359ddfe48b676c5ebdee6408f4baa0adbb507f6b86d5659f947f2907b63b5bb029e8bea3ac0c40f9b6d')
16 build() {
17   cd parsel-$pkgver
18   python setup.py build
21 check() {
22   cd parsel-$pkgver
23   python -m pytest
26 package() {
27   cd parsel-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/