~dricottone/huttese-apk

ref: 68074b5935f00dad54cf3b38fa6f56c2167c3595 huttese-apk/sr.ht/py3-cssselect2/APKBUILD -rw-r--r-- 900 bytes
68074b59 — Drew DeVault py3-celery: add click-didyoumean 4 years ago
                                                                                
e0e85538 Drew DeVault
d4db35cc Drew DeVault
0fcc1037 Drew DeVault
e0e85538 Drew DeVault
d4db35cc Drew DeVault
e0e85538 Drew DeVault
d4db35cc Drew DeVault
e0e85538 Drew DeVault
d4db35cc Drew DeVault
e0e85538 Drew DeVault
d4db35cc Drew DeVault
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
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-cssselect2
_pyname=cssselect2
pkgver=0.4.1
pkgrel=0
pkgdesc="CSS selectors for Python ElementTree"
url="https://pypi.org/projects/cssselect2/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tinycss2"
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 setup.py build
}

check() {
	pytest
}

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

sha512sums="feafeec3dbe3157ee452d94cd391a09cfcb48ca8bd1563c117c77c9ceb01102c4989611ede39e433ec25d3ddda98a94c4589ccb290b79c729683e673763b42ac  cssselect2-0.4.1.tar.gz"