aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-html-sanitizer/APKBUILD
blob: fa36c6eaa423145c4018566a970a56360fd7f77f (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
30
31
32
33
# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=py3-html-sanitizer
pkgver=1.9.1
pkgrel=0
pkgdesc="Allowlist-based and opinionated HTML sanitizer"
url="https://github.com/matthiask/html-sanitizer"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-lxml
	python3
	"
makedepends="
	py3-beautifulsoup4
	py3-setuptools
	"
source="html-sanitizer-$pkgver.tar.gz::https://github.com/matthiask/html-sanitizer/archive/$pkgver.tar.gz"
builddir="$srcdir/html-sanitizer-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="f9a76733f87dc7642a63314202855d3e8639764f64ed29f8816f325faf67062c929e1edfc435b7d1071feb2ed00f31ca9c3e015c55650d95c42226a66ab1e6dd  html-sanitizer-1.9.1.tar.gz"