python-sqlparse: split python3-sqlparse

This commit is contained in:
Michal Vasilek 2023-06-17 21:14:08 +02:00
parent 28e40fc4b9
commit 4661bf427c
3 changed files with 26 additions and 16 deletions

View File

@ -2,9 +2,8 @@
pkgname=python-sqlparse
version=0.3.0
revision=6
build_style=python-module
pycompile_module="sqlparse"
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-setuptools"
short_desc="Non-validating SQL parser for Python2"
maintainer="Orphaned <orphan@voidlinux.org>"
@ -15,17 +14,6 @@ checksum=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
post_install() {
mv ${DESTDIR}/usr/bin/sqlformat{,2}
vlicense LICENSE
}
python3-sqlparse_package() {
depends="python3-setuptools"
pycompile_module="sqlparse"
short_desc="${short_desc/Python2/Python3}"
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3"
pkg_install() {
vmove usr/bin/sqlformat3
vmove usr/lib/python3*
vlicense LICENSE
}
}

View File

@ -1 +0,0 @@
python-sqlparse

View File

@ -0,0 +1,23 @@
# Template file for 'python3-sqlparse'
pkgname=python3-sqlparse
version=0.3.0
revision=6
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools"
checkdepends="python3-pytest"
short_desc="Non-validating SQL parser for Python3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/andialbrecht/sqlparse"
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
checksum=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3"
# sys.stdout.encoding = 'utf-8' AttributeError: readonly attribute
# will be fixed in 0.4.0
make_check=no
post_install() {
mv ${DESTDIR}/usr/bin/sqlformat{,3}
vlicense LICENSE
}