mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
37 lines
988 B
Plaintext
37 lines
988 B
Plaintext
# 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
|
|
"
|