aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cssselect2/APKBUILD
blob: d56ec4af4a6a49f5df220b70a5d25c529e1df43f (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
29
30
31
32
33
34
35
36
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-cssselect2
_pyname=cssselect2
pkgver=0.6.0
pkgrel=0
pkgdesc="CSS selectors for Python ElementTree"
url="https://pypi.org/project/cssselect2/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tinycss2"
makedepends="py3-build py3-flit py3-installer"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8"
_pypiprefix="${_pyname%${_pyname#?}}"
source="
	https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # upstream tests are broken

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/cssselect2-$pkgver-py3-none-any.whl
}

sha512sums="
10cb55ebaaa16b755d85f1e511ae0281fb017d6937750392ae1da7f32d51ff944fb14c6d1c9ea5f42734450b719157ded116dc14ef471a9a20fcc43fb6682308  cssselect2-0.6.0.tar.gz
"