# Template file for 'python-logilab-common'
pkgname=python-logilab-common
version=1.0.2
revision=1
noarch=yes
wrksrc="logilab-common-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-six"
pycompile_module="logilab"
short_desc="Collection of low-level Python2 modules used by Logilab projects"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.logilab.org/project/logilab-common"
license="GPL-2, LGPL-2.1"
distfiles="${PYPI_SITE}/l/logilab-common/logilab-common-${version}.tar.gz"
checksum=3f847b36f6c03ffc8521ed61e691501c9713f8654964b90201f2056742d38300

post_install() {
	rm -f ${DESTDIR}/usr/bin/pytest
	vbin build-2.7/scripts-2.7/pytest
	vbin build-3.4/scripts-3.4/pytest pytest3
}

python3.4-logilab-common_package() {
	noarch=yes
	depends="python-setuptools python3.4-six"
	pycompile_version="3.4"
	pycompile_module="logilab"
	short_desc="${short_desc/Python2/Python3.4}"
	pkg_install() {
		vmove usr/bin/pytest3
		vmove usr/lib/python3.4
	}
}
