python-sqlparse: split python3-sqlparse
This commit is contained in:
parent
28e40fc4b9
commit
4661bf427c
3 changed files with 26 additions and 16 deletions
|
@ -2,9 +2,8 @@
|
||||||
pkgname=python-sqlparse
|
pkgname=python-sqlparse
|
||||||
version=0.3.0
|
version=0.3.0
|
||||||
revision=6
|
revision=6
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
pycompile_module="sqlparse"
|
hostmakedepends="python-setuptools"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
|
||||||
depends="python-setuptools"
|
depends="python-setuptools"
|
||||||
short_desc="Non-validating SQL parser for Python2"
|
short_desc="Non-validating SQL parser for Python2"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -15,17 +14,6 @@ checksum=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
|
||||||
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
|
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
mv ${DESTDIR}/usr/bin/sqlformat{,2}
|
||||||
vlicense LICENSE
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-sqlparse
|
|
23
srcpkgs/python3-sqlparse/template
Normal file
23
srcpkgs/python3-sqlparse/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue