aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-parso/APKBUILD
blob: 1bed94a67c1668b6ef044e0cf80ecac001c58df8 (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.2
pkgrel=0
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="709f116c4e9c4fffd8489a2e77d5e58e9bc653a586bd617f01216eb5368703c9b4da4edcbce2a7f6143b938a83cda54138e019043eb29e57a3b51596581970cd  parso-0.5.2.tar.gz"