# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-alembic
_pyname=alembic
pkgver=1.0.10
pkgrel=0
pkgdesc="Lightweight database migration tool for usage with SQLAlchemy"
url="https://bitbucket.org/zzzeek/alembic"
arch="noarch"
license="MIT"
depends="py3-mako py3-dateutil py3-sqlalchemy py3-editor"
makedepends="python3-dev py3-setuptools py3-mock py3-pytest"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-alembic py2-alembic"
builddir="$srcdir/${_pyname}-${pkgver}"
build() {
python3 setup.py build
}
check() {
python3 setup.py check
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="78cec44ae1b5e6958f629488cf615ada5853db420aee8b3febcffb9f89a0f79137aca7bbcc2eefd4ce6a29f96e989158994d6aa5772582f9d02e91dd7c46d67d alembic-1.0.10.tar.gz"