36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'python-astroid'
|
|
pkgname=python-astroid
|
|
version=1.4.2
|
|
revision=1
|
|
noarch=yes
|
|
replaces="python-logilab-common>=0"
|
|
wrksrc="astroid-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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=b734fa504179a93aa03314df48b45fb1d9d0d8770a1126e7a126c9ac4aebd5c3
|
|
|
|
post_install() {
|
|
# no tests
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests
|
|
}
|
|
|
|
python3.4-astroid_package() {
|
|
noarch=yes
|
|
replaces="python3.4-logilab-common>=0"
|
|
depends="python3.4-six python3.4-lazy-object-proxy python3.4-wrapt"
|
|
pycompile_version="3.4"
|
|
pycompile_module="astroid"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|