~dricottone/huttese-apk

ref: 7f89568c4e427436cdc0ecb4f06f13a779e33b3e huttese-apk/sr.ht/py3-cssselect2/APKBUILD -rw-r--r-- 985 bytes
7f89568c — Drew DeVault hg.sr.ht: add -nginx subpackage 4 years ago
                                                                                
e0e85538 Drew DeVault
4eedc671 Drew DeVault
0fcc1037 Drew DeVault
e0e85538 Drew DeVault
4eedc671 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
33
34
35
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-cssselect2
_pyname=cssselect2
pkgver=0.3.0
pkgrel=0
pkgdesc="CSS selectors for Python ElementTree"
url="https://pypi.org/projects/cssselect2/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tinycss2"
makedepends="py3-setuptools"
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

prepare() {
	# import sorting is broken upstream
	sed -i setup.cfg -e 's/--isort//'
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

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

sha512sums="ae59314654d1c1ddf982b77521de7743d1496145a1367f51e02b6067d6757940e7ccb50b67959630f472972473a1e87cec8dfbc8eeb68ad5f16465a36b1447be  cssselect2-0.3.0.tar.gz"