# Template file for 'python-vispy'
pkgname=python-vispy
version=0.5.1
revision=1
noarch=yes
pycompile_module="vispy"
build_style=python-module
wrksrc="vispy-${version}"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-numpy"
short_desc="Python2 library for interactive scientific visualization"
maintainer="johannes <johannes.brechtmann@gmail.com>"
license="BSD"
homepage="http://vispy.org"
distfiles="${PYPI_SITE}/v/vispy/vispy-${version}.tar.gz"
checksum=20b5bcb14e00cf7da2d175dd95d8d1033d32ce594a49f1930e04455323537f24

post_install() {
	$XBPS_FETCH_CMD https://raw.githubusercontent.com/vispy/vispy/master/LICENSE.txt
	vlicense LICENSE.txt
}

python3-vispy_package() {
	short_desc="${short_desc/Python2/Python3}"
	noarch=yes
	pycompile_module="vispy"
	depends="python3-numpy"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.txt
	}
}
