diff --git a/srcpkgs/python-alembic/template b/srcpkgs/python-alembic/template new file mode 100644 index 00000000000..741874748cb --- /dev/null +++ b/srcpkgs/python-alembic/template @@ -0,0 +1,32 @@ +# Template file for 'python-alembic' +pkgname=python-alembic +version=1.0.2 +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 " +license="MIT" +homepage="https://bitbucket.org/zzzeek/alembic" +distfiles="${PYPI_SITE}/a/alembic/alembic-${version}.tar.gz" +checksum=04bcb970ca8659c3607ddd8ffd86cc9d6a99661c9bc590955e8813c66bfa582b + +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 + } +} diff --git a/srcpkgs/python3-alembic b/srcpkgs/python3-alembic new file mode 120000 index 00000000000..3b0582ddf8a --- /dev/null +++ b/srcpkgs/python3-alembic @@ -0,0 +1 @@ +python-alembic \ No newline at end of file