1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-simpleparse/APKBUILD

33 lines
1.2 KiB
Text

# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-simpleparse
pkgver=2.2.3
pkgrel=0
pkgdesc="Python library providing simple and fast parser generator"
url="https://github.com/mcfletch/simpleparse"
arch="all"
license="eGenix ISC"
depends="python3"
makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/mcfletch/simpleparse/archive/refs/tags/$pkgver.tar.gz
$pkgname-python3.11.patch::https://github.com/mcfletch/simpleparse/commit/36c26a401870eb9570bd6b1b5afc93e4a4f243a0.patch
"
builddir="$srcdir"/simpleparse-$pkgver
options="!check" # fail for some reason
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/tests/
}
sha512sums="
1f7e6e3b70972ba5434ec36c51aa501ac8d48f1044c4e7c94cf311bdae0bd8249b46238a37a4849ee762d972986e2dd3a62ab8f2e9a4d6644a5b3b79977b166d py3-simpleparse-2.2.3.tar.gz
0c72e11070025c015267d30708e9788c6a88cd9919df3111ab22f83350807fb343422de5d5a29cee750aef38209e3cbac0183a3bd5aca71d133976c4f8e6ae53 py3-simpleparse-python3.11.patch
"