void-packages/srcpkgs/python-astroid/template
2018-05-20 17:18:03 +02:00

32 lines
1,000 B
Bash

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