aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-parso/APKBUILD
blob: ceead980ecccf28d6c2194a52bb47282e024faa3 (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-parso
pkgver=0.5.1
pkgrel=1
pkgdesc="Python3 parser that supports error recovery and round-trip parsing for different Python versions"
url="https://github.com/davidhalter/parso"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/parso/parso-$pkgver.tar.gz"
builddir="$srcdir/parso-$pkgver"

replaces="py-parso" # Backwards compatibility
provides="py-parso=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

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

sha512sums="547a9d2ad53a1d4a82cabecb346840619833af6f0070432d8a439509934c76c65e5bbd015336a9ea1ad503dd21573098ee4f46b004bf5afb6c94c99912a77d98  parso-0.5.1.tar.gz"