aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-bleach/APKBUILD
blob: 247749ee31744b5e9bacbb5a29c31db8d679211f (plain)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-bleach
pkgver=3.1.1
pkgrel=0
pkgdesc="whitelist-based HTML sanitizing library"
options="!check" # https://github.com/mozilla/bleach/issues/503
url="https://github.com/mozilla/bleach"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-six py3-webencodings"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/bleach/archive/v$pkgver.tar.gz"
builddir="$srcdir/bleach-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="2d526455bf5733842f4ba5fa1301497f3e52055eb519ad1bd6f7b44e045e10ec25f5a16b5c78b597df456fb8288256a54c4c72fe7c7b335af912b16830fbb905  py3-bleach-3.1.1.tar.gz"