# Template file for 'python-jedi'
pkgname=python-jedi
version=0.13.1
revision=1
noarch=yes
_parsover=0.3.0
wrksrc="jedi-${version}"
build_style=python-module
pycompile_module="jedi"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-parso>=${_parsover}"
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=b7493f73a2febe0dc33d51c99b474547f7f6c0b2c8fb2b21f453eef204c12148

post_install() {
	vlicense LICENSE.txt
}

python3-jedi_package() {
	noarch=yes
	pycompile_module="jedi"
	depends="python3-parso>=${_parsover}"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.txt
	}
}
