projects/aports·blob master · refs

37 lines · 1.2 KiB

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