# Template file for 'python-hyperlink'
pkgname=python-hyperlink
version=17.3.1
revision=2
noarch=yes
wrksrc="hyperlink-${version}"
build_style=python-module
pycompile_module="hyperlink"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Pure-Python implementation of immutable URLs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/python-hyper/hyperlink"
license="MIT"
distfiles="${PYPI_SITE}/h/hyperlink/hyperlink-${version}.tar.gz"
checksum=bc4ffdbde9bdad204d507bd8f554f16bba82dd356f6130cb16f41422909c33bc

post_install() {
	vlicense LICENSE
}

python3-hyperlink_package() {
	noarch=yes
	depends="python3"
	pycompile_module="hyperlink"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}

