projects/aports·blob master · refs

38 lines · 1.2 KiB

1# Contributor: Francesco Colista <[email protected]>
2# Maintainer: Fabian Affolter <[email protected]>
3pkgname=py3-cssutils
4_pkgname=cssutils
5pkgver=2.15.0
6pkgrel=0
7pkgdesc="CSS Cascading Style Sheets library for Python"
8url="http://cthedot.de/cssutils/"
9arch="noarch"
10license="LGPL-3.0-or-later"
11depends="py3-more-itertools py3-encutils"
12makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
13checkdepends="py3-pytest py3-jaraco.test"
14subpackages="$pkgname-pyc"
15source="https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-$pkgver.tar.gz"
16builddir="$srcdir"/$_pkgname-$pkgver
17
18build() {
19 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
20 gpep517 build-wheel \
21 --wheel-dir .dist \
22 --output-fd 3 3>&1 >&2
23}
24
25check() {
26 python3 -m venv --clear --without-pip --system-site-packages .testenv
27 .testenv/bin/python3 -m installer .dist/*.whl
28 .testenv/bin/python3 -m pytest --ignore=tests/test_errorhandler.py tests
29}
30
31package() {
32 python3 -m installer -d "$pkgdir" \
33 .dist/cssutils*.whl
34}
35
36sha512sums="
37babd411f3d633e35d77d36d1f905138dbd1c1d111713bf00ce4bf01b7c7990f0d82d750c4ac66af16153f3f4a7da528b0295c9f205eb5d29585c320976edf859 cssutils-2.15.0.tar.gz
38"