blob: a099c9a6be38bc4ac36bf11866f3a539d2300c3d (
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
34
35
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-bleach
pkgver=3.1.5
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"
# secfixes:
# 3.1.2-r0:
# - CVE-2020-6816
# 3.1.1-r0:
# - CVE-2020-6802
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="7a391588115e474dde1ba719e0c3decb1a195dd8191e9384f2114c80673da8e5d86f196cd988529f724659b7e4960e417db77458023646f8954bf91ab78eb8c9 py3-bleach-3.1.5.tar.gz"
|