summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 479f5331b9db8c17bf358b4dab0fc02f51bc1bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Philipp A. <flying-sheep@web.de>

_name=alembic-autogenerate-enums
pkgname=python-$_name
pkgver=0.1.2
pkgrel=1
pkgdesc='Alembic hook that causes --autogenerate to output PostgreSQL ALTER TYPE statements.'
arch=(any)
url="https://github.com/dw/$_name"
license=(MIT)
depends=(python python-alembic python-sqlalchemy)
makedepends=(python-poetry-core python-build python-installer python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('467adc76f1ef32576e514ef55c400c28900547800b676dec349293519751c128')

build() {
	cd "$_name-$pkgver"
	python -m build --wheel --no-isolation
}

package() {
	cd "$_name-$pkgver"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}