summaryrefslogtreecommitdiff
path: root/user/py3-markupsafe/APKBUILD
blob: 400594de20a380c3ee3806bcf60bfb8f01d95954 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Brandon Bergren <git@bdragon.rtk0.net>
# Maintainer: Brandon Bergren <git@bdragon.rtk0.net>
pkgname=py3-markupsafe
_pkgname=MarkupSafe
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.0.1
pkgrel=0
pkgdesc="Safely add untrusted strings to HTML/XML markup."
url="https://pypi.python.org/pypi/MarkupSafe"
arch="all"
license="BSD-3-Clause"
depends="python3"
checkdepends="py3-pytest"
makedepends="python3-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PYTHONPATH:$(echo build/lib.*)" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="77249bda784111ece15d59eb3de1cbb37a58fb9f22902fe6b73fea9eb0f23857ccbe53dc55463278e3b91f78dc35e2b027fd823ca50d88d8985d5a98ce2327f1  py3-markupsafe-2.0.1.tar.gz"