aports/community/py3-sqlglot/APKBUILD

33 lines
923 B
Plaintext

# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-sqlglot
pkgver=24.0.1
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="
d1fcf7839fa8fdcb8cba311c6aad6b588619d75275b80483d2adc6fa8162e288abc7f3f410570c81bd50c3ac6d9429e85d93e1b4e5a01700c5249c8e85339817 sqlglot-24.0.1.tar.gz
"