~dricottone/huttese-apk

ref: 179dd7054f3d636729cb6c5bc4659687fe0ed33b huttese-apk/sr.ht/py3-cssselect2/APKBUILD -rw-r--r-- 985 bytes
179dd705 — Drew DeVault drawterm-sourcehut: new aport 4 years ago
                                                                                
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.2.2
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="1f11077c6e28f52a1c370c1f3d5fa1156f74b390298323889230304ede6c23a2f2b78c63026f5d84e67518a21fc8df3484577bc77fcf19cb97a84c2a7f28d355  cssselect2-0.2.2.tar.gz"