# Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=py3-cssutils _pkgname=cssutils pkgver=2.15.0 pkgrel=0 pkgdesc="CSS Cascading Style Sheets library for Python" url="http://cthedot.de/cssutils/" arch="noarch" license="LGPL-3.0-or-later" depends="py3-more-itertools py3-encutils" makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" checkdepends="py3-pytest py3-jaraco.test" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest --ignore=tests/test_errorhandler.py tests } package() { python3 -m installer -d "$pkgdir" \ .dist/cssutils*.whl } sha512sums=" babd411f3d633e35d77d36d1f905138dbd1c1d111713bf00ce4bf01b7c7990f0d82d750c4ac66af16153f3f4a7da528b0295c9f205eb5d29585c320976edf859 cssutils-2.15.0.tar.gz "