# Template file for 'python-logilab-common'
pkgname=python-logilab-common
version=1.1.0
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/common"
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=9614fdddab90b1170d210c55f67f42584344b2a5fd6091fe4ac142069b08a4ad

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/common"
	short_desc="${short_desc/Python2/Python3.4}"
	pkg_install() {
		vmove usr/bin/pytest3
		vmove usr/lib/python3.4
	}
}
