2023-06-12 17:57:35 +02:00

38 lines
1.0 KiB
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-cssutils
_pkgname=cssutils
pkgver=2.7.1
pkgrel=0
pkgdesc="CSS Cascading Style Sheets library for Python"
url="http://cthedot.de/cssutils/"
arch="noarch"
license="LGPL-3.0-or-later"
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() {
pytest cssutils/tests
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/cssutils*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/cssutils/tests
}
sha512sums="
719b1b0866dd51e9b464659d861caa5eadfb1821b902824064fbf7843b6a2f5cfceb33f1deb2b7aa5dfc3306c94e8e86441aa014ec0c5bf133d5b1c13463b2db cssutils-2.7.1.tar.gz
"