aports/main/py3-markupsafe/APKBUILD
2024-10-24 23:54:15 +02:00

37 lines
1.2 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-markupsafe
pkgver=3.0.2
pkgrel=0
pkgdesc="Implements a XML/HTML/XHTML Markup safe string"
url="https://github.com/pallets/markupsafe"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel"
checkdepends="pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/M/MarkupSafe/markupsafe-$pkgver.tar.gz"
builddir="$srcdir/markupsafe-$pkgver"
replaces="py-markupsafe" # Backwards compatibility
provides="py-markupsafe=$pkgver-r$pkgrel" # Backwards compatibility
build() {
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
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
find "$pkgdir" -name "*.c" -delete
}
sha512sums="
26946b928b001933f08a5dd90c5fe424a1d9e2bccfbf7194955d031a3df54a03eb48e4e47ea9564a25da33efeb62a043a53008f551fa1e8d71321bc276e19ce2 markupsafe-3.0.2.tar.gz
"