aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-lark-parser/APKBUILD
blob: 6ee6d866b80713f1e37f132d775dabb75ab04596 (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
# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname="py3-lark-parser"
_pkgname="lark-parser"
pkgver="0.7.8"
pkgrel=0
pkgdesc="A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface "
url="https://github.com/lark-parser/lark"
arch="noarch"
license="MIT"
options="!check" # requires python dependency js2py
depends="python3"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/lark/archive/$pkgver.tar.gz"
builddir="$srcdir/lark-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="3f6093d600744e23f32622bc40017873ecd54b44757b761f007606827411964bb38e3b5c0c23373ff0caea2ab73d6ed1c834d5444cedce0cef762c512a1aa669  lark-parser-0.7.8.tar.gz"