void-packages/srcpkgs/python-sqlparse/template
2021-10-09 08:00:41 -04:00

32 lines
935 B
Bash

# Template file for 'python-sqlparse'
pkgname=python-sqlparse
version=0.3.0
revision=5
wrksrc="sqlparse-${version}"
build_style=python-module
pycompile_module="sqlparse"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Non-validating SQL parser for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
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/sqlformat2"
post_install() {
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
}
}