mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Contributor: tcely <py3-ply+aports@tcely.33mail.com>
|
|
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
_pkgname=ply
|
|
pkgname=py3-$_pkgname
|
|
pkgver=3.11
|
|
pkgrel=11
|
|
pkgdesc="Python Lex & Yacc"
|
|
url="https://www.dabeaz.com/ply/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$_pkgname-$pkgver.tar.gz::https://github.com/dabeaz/ply/archive/$pkgver.tar.gz
|
|
no-py3-six.patch
|
|
assertTrue.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
cd test
|
|
../.testenv/bin/python3 testlex.py
|
|
../.testenv/bin/python3 testyacc.py
|
|
../.testenv/bin/python3 testcpp.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c36e4ea0eb5bb7cca8cc34aa62dd711be755e44f1336a0093d7c9c1ea4d5d8cae8316416a2109ba24bb2b71f7a971b0b34a7ea45c43d4c7c63c513156945fc17 ply-3.11.tar.gz
|
|
b2390a7c60b3059dbae8cf7ee316516c33c3be9999527700190f5876d61377884262b7d0e160600af5373f0ab5e8515f28bd275c86b20f9700aa074198a1eede no-py3-six.patch
|
|
c00c2a513cde19b021aa81631ad4791a24c8b36a75914e945ab6ec2675e1807a491e3915fa6cc4400268b352c0f60f0c34e65cc2f547cdec8d2ca078678ae6e2 assertTrue.patch
|
|
"
|