void-packages/srcpkgs/python-jedi/template
2017-12-17 20:07:31 +01:00

36 lines
960 B
Bash

# Template file for 'python-jedi'
pkgname=python-jedi
version=0.11.1
revision=1
noarch=yes
wrksrc="jedi-${version}"
build_style=python-module
pycompile_module="jedi"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-parso"
short_desc="Autocompletion/static analysis library for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://jedi.readthedocs.io/"
license="MIT"
distfiles="${PYPI_SITE}/j/jedi/jedi-${version}.tar.gz"
checksum=d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97
pre_build() {
sed -i 's/parso.*/parso/' requirements.txt
}
post_install() {
vlicense LICENSE.txt LICENSE
# remove test directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/test
}
python3-jedi_package() {
noarch=yes
depends="python3-parso"
pycompile_module="jedi"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}