vp-build/srcpkgs/python-sqlalchemy-migrate/template

39 lines
1.3 KiB
Bash

# Template file for 'python-sqlalchemy-migrate'
pkgname=python-sqlalchemy-migrate
version=0.12.0
revision=5
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="migrate"
hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
depends="python-pbr python-SQLAlchemy python-decorator python-six python-sqlparse python-tempita"
short_desc="Database schema migration for SQLAlchemy (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/stackforge/sqlalchemy-migrate"
distfiles="${PYPI_SITE}/s/sqlalchemy-migrate/sqlalchemy-migrate-${version}.tar.gz"
checksum=8cfada30bbcf79a83b3a2d1bcd637de7e1f43e390d54de33e4f3249fd9aacfae
alternatives="
migrate:migrate-repository:/usr/bin/migrate-repository2
migrate:migrate:/usr/bin/migrate2"
post_install() {
vlicense COPYING LICENSE
}
python3-sqlalchemy-migrate_package() {
alternatives="
migrate:migrate-repository:/usr/bin/migrate-repository3
migrate:migrate:/usr/bin/migrate3"
depends="python3-pbr python3-SQLAlchemy python3-decorator python3-six
python3-sqlparse python3-tempita"
pycompile_module="migrate"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense COPYING LICENSE
}
}