12345678910111213141516171819202122232425262728293031323334 |
- # Maintainer(Arch): Felix Yan <felixonmars@archlinux.org>
- # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
- # Maintainer: Sagar Acharya <sagar@hyperbola.info>
- pkgname=python-cssselect
- pkgver=1.1.0
- pkgrel=1
- license=('Modified-BSD')
- arch=('any')
- url="https://github.com/scrapy/cssselect"
- pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
- depends=('python')
- makedepends=('python-setuptools')
- #checkdepends=('python-pytest-runner' 'python-lxml')
- source=("https://github.com/scrapy/cssselect/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
- sha512sums=('b33bca6a026f4de37b75606fd238dbd170b57d06288fbff3ea97ce79685a99af275fb8522b04ea9d6693aba5a18541d70b657191fdad881be79718bcf2e7655c')
- build() {
- cd cssselect-$pkgver
- python setup.py build
- }
- #check() {
- # cd cssselect-$pkgver
- # python setup.py pytest
- #}
- package() {
- cd cssselect-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
- }
|