| 1 | # Contributor: Fabian Affolter <[email protected]> |
| 2 | # Maintainer: Patrycja Rosa <[email protected]> |
| 3 | pkgname=py3-markupsafe |
| 4 | pkgver=3.0.3 |
| 5 | pkgrel=1 |
| 6 | pkgdesc="Implements a XML/HTML/XHTML Markup safe string" |
| 7 | url="https://github.com/pallets/markupsafe" |
| 8 | arch="all" |
| 9 | license="BSD-3-Clause" |
| 10 | depends="python3" |
| 11 | makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel" |
| 12 | checkdepends="py3-pytest" |
| 13 | subpackages="$pkgname-pyc" |
| 14 | source="https://files.pythonhosted.org/packages/source/M/MarkupSafe/markupsafe-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/markupsafe-$pkgver" |
| 16 | |
| 17 | replaces="py-markupsafe" # Backwards compatibility |
| 18 | provides="py-markupsafe=$pkgver-r$pkgrel" # Backwards compatibility |
| 19 | |
| 20 | build() { |
| 21 | gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 |
| 22 | } |
| 23 | |
| 24 | check() { |
| 25 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 26 | .testenv/bin/python3 -m installer .dist/*.whl |
| 27 | .testenv/bin/python3 -m pytest |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | python3 -m installer -d "$pkgdir" .dist/*.whl |
| 32 | find "$pkgdir" -name "*.c" -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 8c4ed04b467244f6bf99cd2a60ed922bc0569581f00cc5a13d9edcd0a4bc8b97c404edc4576f6146c7aa543bbd37cf52e5312d3bdd27758264d8751fdc7a646c markupsafe-3.0.3.tar.gz |
| 37 | " |