void-packages/srcpkgs/python-sqlparse/template
2017-03-09 18:16:32 +01:00

36 lines
1.1 KiB
Bash

# Template file for 'python-sqlparse'
pkgname=python-sqlparse
version=0.2.3
revision=1
noarch=yes
build_style=python-module
wrksrc="sqlparse-${version}"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="sqlparse"
short_desc="Non-validating SQL parser for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/andialbrecht/sqlparse"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
checksum=becd7cc7cebbdf311de8ceedfcf2bd2403297024418801947f8c953025beeff8
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
python3-sqlparse_package() {
noarch=yes
depends="python3-setuptools"
pycompile_module="sqlparse"
replaces="python3.4-sqlparse>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3"
pkg_install() {
vmove usr/bin/sqlformat3
vmove usr/lib/python3*
}
}
python3.4-sqlparse_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-sqlparse>=${version}_${revision}"
}