# Contributor: Leo # Maintainer: Leo pkgname=py3-bleach pkgver=3.1.4 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="eb648ec6ecbc070d2e7e2f39916679b9be29d4a490fbf4ba0ff3d603bab14c0b4841cf2fb9ccb943c2788269b20b4e934a95d96b0d715dc53cba0f057aa5d545 py3-bleach-3.1.4.tar.gz"