void-packages/srcpkgs/python-bleach/template

28 lines
860 B
Bash

# Template file for 'python-bleach'
pkgname=python-bleach
version=3.1.0
revision=2
archs=noarch
wrksrc="bleach-${version}"
build_style=python-module
pycompile_module="bleach"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six python-webencodings"
short_desc="Easy safelist-based HTML-sanitizing tool (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/mozilla/bleach"
changelog="https://raw.githubusercontent.com/mozilla/bleach/master/CHANGES"
distfiles="${PYPI_SITE}/b/bleach/bleach-${version}.tar.gz"
checksum=3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa
python3-bleach_package() {
archs=noarch
pycompile_module="bleach"
depends="python3-six python3-webencodings"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}