# Template file for 'python-IPy'
pkgname=python-IPy
version=0.83
revision=2
build_style=python-module
noarch=yes
pycompile_module="IPy.py"
wrksrc="IPy-${version}"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 class for handling of IPv4 and IPv6 addresses and networks"
maintainer="johannes <johannes.brechtmann@gmail.com>"
license="BSD"
homepage="https://github.com/autocracy/python-ipy"
distfiles="${PYPI_SITE}/I/IPy/IPy-${version}.tar.gz"
checksum=61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8

post_install() {
	vlicense COPYING
}

python3-IPy_package() {
	short_desc="${short_desc/Python2/Python3}"
	noarch=yes
	pycompile_module="IPy.py"
	depends="python3"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense COPYING
	}
}
