aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-jedi/APKBUILD
blob: 8af611c8b864e91b4f9459d0f94f242058b5df6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-jedi
_pkgname=jedi
pkgver=0.13.3
pkgrel=0
pkgdesc="Awesome autocompletion and static analysis library for python"
url="https://pypi.org/project/jedi"
arch="noarch"
license="MIT"
makedepends="py3-setuptools python3-dev"
checkdepends="pytest py-parso py-tox"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	adjust-speed-test.patch"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-jedi"
provides="py-jedi"

build() {
	python3 setup.py build
}

_getpythonver(){
	echo $(python3 -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
}

check() {
	tox -e py$(_getpythonver)
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b20fc75d909f9b7c6db434f468e7cefd9768991ca72d7026df9c4000805675a979f9e40f75623770df44bf8919a46270bcaa8e28d991a2299c64bc4c60d873fc  jedi-0.13.3.tar.gz
8a33c01f8d9f4f121176b0346759e74ab9847f1803f9d82515826c470822bf35ca5c84c29ac0c65b244457f8a05e26e05f6182337eadaf2aa4acc80a88972e32  adjust-speed-test.patch"