void-packages/srcpkgs/python-pgmigrate/template

31 lines
903 B
Bash

# Template file for 'python-pgmigrate'
pkgname=python-pgmigrate
version=1.0.5
revision=2
archs=noarch
wrksrc="pgmigrate-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-future python-sqlparse python-psycopg2 python-yaml"
short_desc="Simple tool to evolve PostgreSQL schema easily (Python2)"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="PostgreSQL"
homepage="https://github.com/yandex/pgmigrate"
distfiles="https://github.com/yandex/pgmigrate/archive/${version}.tar.gz"
checksum=0ab726797a76e63d562e1de204cea0ee82316249fa136548976452ed32934a1b
post_install() {
vlicense LICENSE
}
python3-pgmigrate_package() {
archs=noarch
depends="python3 python3-sqlparse python3-psycopg2 python3-yaml"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/pgmigrate3
vmove usr/lib/python3*
vlicense LICENSE
}
}