# Template file for 'python-mistune'
pkgname=python-mistune
version=0.8.4
revision=2
archs=noarch
wrksrc="mistune-${version}"
build_style=python-module
pycompile_module="mistune.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="The fastest markdown parser for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/lepture/mistune"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/m/mistune/mistune-${version}.tar.gz"
checksum=59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e

post_install() {
	vlicense LICENSE
}

python3-mistune_package() {
	archs=noarch
	depends="python3"
	pycompile_module="mistune.py"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
