blob: e25ffa801fe7076fc0f94f0413fca91a35fc4568 (
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
|
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py-parso
pkgver=0.5.0
pkgrel=0
pkgdesc="a Python parser that supports error recovery and round-trip parsing for different Python versions"
url="https://pypi.org/project/parso/"
arch="noarch"
license="MIT"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-tox"
depends="python3"
source="https://files.pythonhosted.org/packages/source/p/parso/parso-$pkgver.tar.gz"
builddir="$srcdir/parso-$pkgver"
build() {
python3 setup.py build
}
_tox_pyver() {
local _pyver=$(python3 -c 'import sys; print(str(sys.version_info[0])+str(sys.version_info[1]))')
echo py$_pyver
}
check() {
tox -e $(_tox_pyver)
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="ba445bb930855c4991cec8717623a0e254eb585e6ea1bf7986fa0ce1f70df86eca128a9e93a5dce88a3465f241d9d2d803ca192f37a4207bdb577b9c8b4e3714 parso-0.5.0.tar.gz"
|