void-packages/srcpkgs/python3-sqlparse/template

24 lines
755 B
Bash

# Template file for 'python3-sqlparse'
pkgname=python3-sqlparse
version=0.3.0
revision=7
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
}