void-packages/srcpkgs/python-sqlalchemy-migrate/template
Alessio Sergi d479d3f696 python-sqlalchemy-migrate: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 09:44:00 +02:00

47 lines
1.5 KiB
Bash

# Template file for 'python-sqlalchemy-migrate'
pkgname=python-sqlalchemy-migrate
version=0.10.0
revision=3
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
depends="python-pbr python-SQLAlchemy python-decorator python-six python-sqlparse python-tempita"
pycompile_module="migrate"
short_desc="Database schema migration for SQLAlchemy (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/stackforge/sqlalchemy-migrate"
license="MIT"
distfiles="${PYPI_SITE}/s/sqlalchemy-migrate/sqlalchemy-migrate-${version}.tar.gz"
checksum=f83c5cce9c09e5c05527279b7fe1565b32e5353342ff30b24f594fa2e5a7e003
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"
noarch=yes
depends="python3-pbr python3-SQLAlchemy python3-decorator python3-six
python3-sqlparse python3-tempita"
pycompile_module="migrate"
replaces="python3.4-sqlalchemy-migrate>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense COPYING LICENSE
}
}
python3.4-sqlalchemy-migrate_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-sqlalchemy-migrate>=${version}_${revision}"
}