diff --git a/community/py3-sqlglot/APKBUILD b/community/py3-sqlglot/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..350d1767a2e50af3caecc2197862ea6f1441c3a2 --- /dev/null +++ b/community/py3-sqlglot/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: omni <omni+alpine@hack.org> +# Maintainer: omni <omni+alpine@hack.org> +pkgname=py3-sqlglot +_pkgname=sqlglot +pkgver=6.0.4 +pkgrel=0 +pkgdesc="Python SQL Parser and Transpiler" +url="https://github.com/tobymao/sqlglot" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +options="!check" +# tests are included in the github release tarball but seem to require +# additional aports to be added, see requirements.txt +source="https://files.pythonhosted.org/packages/source/s/sqlglot/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums=" +4f90e0c26138ae1eae84b92c420f70dd6d63e2e3cfdc26ef3df8a80577fdd1dad24034be50cb2a4075769530a013f1de52c8fdfdf110a97aee15f1c3c06abc90 sqlglot-6.0.4.tar.gz +"