2021-06-14 19:51:51 +00:00
|
|
|
# Description: A modern parsing library
|
|
|
|
# URL: https://github.com/lark-parser/lark
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-12-28 10:20:01 +00:00
|
|
|
# Depends on: python3-build python3-installer
|
2021-06-14 19:51:51 +00:00
|
|
|
|
|
|
|
name=python3-lark-parser
|
2023-07-21 16:09:20 +02:00
|
|
|
version=1.1.7
|
2021-06-14 19:51:51 +00:00
|
|
|
release=1
|
|
|
|
|
2021-11-16 11:57:00 +01:00
|
|
|
# https://github.com/lark-parser/lark/tree/master/tests/test_nearley
|
2021-11-15 14:45:18 +01:00
|
|
|
_nearley_commit=326831689826cb1b9a4d21d1ce0d5db9278e9636
|
2021-06-14 19:51:51 +00:00
|
|
|
|
|
|
|
source=(https://github.com/lark-parser/lark/archive/$version/$name-$version.tar.gz
|
|
|
|
https://github.com/kach/nearley/archive/$_nearley_commit/nearley-$_nearley_commit.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
rmdir lark-$version/tests/test_nearley/nearley
|
|
|
|
ln -s nearely-$_nearley_commit lark-$version/tests/test_nearley/nearley
|
2022-12-28 10:20:01 +00:00
|
|
|
|
2021-06-14 19:51:51 +00:00
|
|
|
cd lark-$version
|
2022-12-28 10:20:01 +00:00
|
|
|
|
2023-07-20 17:58:13 +02:00
|
|
|
PIP_CONFIG_FILE=/dev/null /usr/bin/pip3 install --isolated --root=$PKG \
|
|
|
|
--ignore-installed --no-deps .
|
2021-06-14 19:51:51 +00:00
|
|
|
}
|