# Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=py3-cssutils _pkgname=cssutils pkgver=2.6.0 pkgrel=1 pkgdesc="CSS Cascading Style Sheets library for Python" url="http://cthedot.de/cssutils/" arch="noarch" license="LGPL-3.0-or-later" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" checkdepends="py3-pytest py3-jaraco.test" 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() { pytest cssutils/tests } package() { python3 -m installer -d "$pkgdir" \ dist/cssutils*.whl rm -r "$pkgdir"/usr/lib/python3*/site-packages/cssutils/tests } sha512sums=" 95ce26cc4816e7750fc0f1e0c4ac60f176e3c7b3ea1871440bf937d442e0f8626f9e4c75622c0ea3a84d68ceb4b768544e9642936beb87eff1b55117ce47b311 cssutils-2.6.0.tar.gz "