ayaports/unmaintained/py2-cssselect/APKBUILD

30 lines
826 B
Text
Raw Normal View History

2021-06-04 15:24:22 +00:00
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py2-cssselect
_pkgname=cssselect
pkgver=1.1.0
pkgrel=0
pkgdesc="Library for parsing CSS3 selectors and translating them to XPath 1.0"
url="https://github.com/scrapy/cssselect"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py2-setuptools"
checkdepends="py2-pytest py2-lxml"
source="$_pkgname-$pkgver.tar.gz::https://github.com/scrapy/cssselect/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
python2 setup.py build
}
check() {
py.test-2
}
package() {
python2 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="b33bca6a026f4de37b75606fd238dbd170b57d06288fbff3ea97ce79685a99af275fb8522b04ea9d6693aba5a18541d70b657191fdad881be79718bcf2e7655c cssselect-1.1.0.tar.gz"