aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-parsel/APKBUILD
blob: 7f4cb4653a9fbaaea5e97d9c7828b6bb57459120 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-parsel
_pkgname=parsel
pkgver=1.5.2
pkgrel=1
pkgdesc="Library to extract data from HTML and XML using XPath and CSS selectors"
url="https://github.com/scrapy/parsel"
arch="noarch"
license="BSD-3-Clause"
depends="py3-cssselect py3-lxml py3-six py3-w3lib"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="89394b52d33469d8ddd60800ecaaeb2179490631d7adc5a8689d62efe9ddadcc35d6fdef92351b310e5ecd2bf20ee8c977df755b539cb83a3be64f1a3296ec36  parsel-1.5.2.tar.gz"