# Template file for 'python-Bottleneck'
pkgname=python-Bottleneck
version=1.2.1
revision=2
wrksrc="Bottleneck-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel python-numpy python3-numpy"
depends="python-numpy"
pycompile_module="bottleneck"
short_desc="Fast NumPy array functions written in C (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://berkeleyanalytics.com/bottleneck/"
license="2-clause-BSD"
distfiles="${PYPI_SITE}/B/Bottleneck/Bottleneck-${version}.tar.gz"
checksum=6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36

post_install() {
	rm -f ${DESTDIR}/usr/lib/python*/site-packages/bottleneck/LICENSE
	vlicense bottleneck/LICENSE
}

python3-Bottleneck_package() {
	replaces="python3.4-Bottleneck>=0"
	depends="python3-numpy"
	pycompile_module="bottleneck"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense bottleneck/LICENSE
	}
}
python3.4-Bottleneck_package() {
	build_style=meta
	short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
	depends="python3-Bottleneck>=${version}_${revision}"
}
