void-packages/srcpkgs/python-alembic/template

33 lines
919 B
Bash
Raw Normal View History

2018-08-04 22:26:46 +02:00
# Template file for 'python-alembic'
pkgname=python-alembic
2018-11-16 19:35:49 +01:00
version=1.0.3
2018-08-04 22:26:46 +02:00
revision=1
noarch=yes
wrksrc="alembic-${version}"
build_style=python-module
pycompile_module="alembic"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-Mako python-SQLAlchemy python-dateutil python-editor"
short_desc="Database migration tool for SQLAlchemy (Python2)"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="MIT"
homepage="https://bitbucket.org/zzzeek/alembic"
distfiles="${PYPI_SITE}/a/alembic/alembic-${version}.tar.gz"
2018-11-16 19:35:49 +01:00
checksum=4b6ff7433247fe80b6ef522ef3763acb959cbdef027d03f76f4cd3c7118c1872
2018-08-04 22:26:46 +02:00
post_install() {
vlicense LICENSE
}
python3-alembic_package() {
noarch=yes
pycompile_module="alembic"
depends="python3-Mako python3-SQLAlchemy python3-dateutil python3-editor"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}