void-packages/srcpkgs/python-astroid/template
2016-12-19 11:20:17 +01:00

38 lines
1.1 KiB
Bash

# Template file for 'python-astroid'
pkgname=python-astroid
version=1.4.9
revision=1
noarch=yes
wrksrc="astroid-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six python-lazy-object-proxy python-wrapt"
pycompile_module="astroid"
short_desc="Abstract syntax tree for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/PyCQA/astroid"
license="GPL-2, LGPL-2.1"
distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz"
checksum=a483e7891ce3a06dadfc6cb9095b0938aca58940d43576d72e4502b480c085d7
post_install() {
# no tests
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests
}
python3-astroid_package() {
noarch=yes
replaces="python3.4-astroid>=0"
depends="python3-six python3-lazy-object-proxy python3-wrapt"
pycompile_module="astroid"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-astroid_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-astroid>=${version}_${revision}"
}