27 lines
772 B
Bash
27 lines
772 B
Bash
# Template file for 'python-bleach'
|
|
pkgname=python-bleach
|
|
version=2.1.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="bleach-${version}"
|
|
build_style=python-module
|
|
pycompile_module="bleach"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six python-html5lib"
|
|
short_desc="Easy safelist-based HTML-sanitizing tool (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/mozilla/bleach"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/b/bleach/bleach-${version}.tar.gz"
|
|
checksum=760a9368002180fb8a0f4ea48dc6275378e6f311c39d0236d7b904fca1f5ea0d
|
|
|
|
python3-bleach_package() {
|
|
noarch=yes
|
|
pycompile_module="bleach"
|
|
depends="python3-six python3-html5lib"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|