Date: Saturday, April 22, 2023 @ 12:57:21 Author: yan12125 Revision: 1448315
python-py-partiql-parser: added as newer python-moto needs it See: https://github.com/getmoto/moto/pull/6103 Added: python-py-partiql-parser/ python-py-partiql-parser/trunk/ python-py-partiql-parser/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-py-partiql-parser/trunk/PKGBUILD =================================================================== --- python-py-partiql-parser/trunk/PKGBUILD (rev 0) +++ python-py-partiql-parser/trunk/PKGBUILD 2023-04-22 12:57:21 UTC (rev 1448315) @@ -0,0 +1,36 @@ +# Maintainer: Chih-Hsuan Yen <[email protected]> + +pkgname=python-py-partiql-parser +_pkgname=py-partiql-parser +# https://github.com/getmoto/py-partiql-parser/blob/main/CHANGELOG.md +# UPDATE_BLOCKED: newer versions break current python-moto +pkgver=0.1.0 +pkgrel=1 +pkgdesc='Python Parser for PartiQL' +arch=(any) +url='https://github.com/getmoto/py-partiql-parser' +license=(MIT) +depends=(python) +makedepends=(python-build python-installer python-setuptools python-wheel) +checkdepends=(python-pytest python-sure) +source=("https://github.com/getmoto/py-partiql-parser/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('6ba618648f04423bc1ec2dd3ffef865bba46be1bbfa6c7790ecc460e8c5fe8ac') + +build() { + cd $_pkgname-$pkgver + + python -m build --wheel --no-isolation +} + +check() { + cd $_pkgname-$pkgver + + pytest tests +} + +package() { + cd $_pkgname-$pkgver + + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +}
