# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-alembic
_pyname=alembic
pkgver=1.4.2
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="82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e alembic-1.4.2.tar.gz"