summaryrefslogtreecommitdiff
path: root/testing/py3-parsel/APKBUILD
blob: 2320579edebfc7a960a7ee88b5393d043f03dc63 (plain)
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
29
30
31
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-parsel
_pkgname=parsel
pkgver=1.7.0
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="python3 py3-cssselect py3-lxml py3-w3lib py3-packaging"
makedepends="py3-setuptools py3-pytest-runner"
checkdepends="py3-pytest py3-sybil py3-psutil"
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 --skip-build --root="$pkgdir"
}

sha512sums="
669dc5a25f488dbf789ecc4b3e055488ac8040427375b359ddfe48b676c5ebdee6408f4baa0adbb507f6b86d5659f947f2907b63b5bb029e8bea3ac0c40f9b6d  parsel-1.7.0.tar.gz
"