1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/py3-sqlglot/APKBUILD

32 lines
925 B
Text

# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-sqlglot
pkgver=26.22.0
pkgrel=0
pkgdesc="Python SQL Parser and Transpiler"
url="https://github.com/tobymao/sqlglot"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
options="!check"
# tests are included in the github release tarball but seem to require
# additional aports to be added, see requirements.txt
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/s/sqlglot/sqlglot-$pkgver.tar.gz"
builddir="$srcdir/sqlglot-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
f5517fb3fea252d143cc9b30ff28cf96f1ebc06875e06b22c359d2b8a09dd0097258faf66ca287c67d2bd80a758b1eb9c0681d32c3b89d50d05b58ca01627670 sqlglot-26.22.0.tar.gz
"