# Maintainer: Butui Hu pkgname=sqlacodegen _name=sqlacodegen pkgver=3.0.0rc5 pkgrel=1 pkgdesc='Automatic model code generator for SQLAlchemy' arch=(any) url='https://github.com/agronholm/sqlacodegen' license=(MIT) depends=( python-inflect python-sqlalchemy ) makedepends=( python-build python-installer python-setuptools python-setuptools-scm python-wheel ) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/agronholm/sqlacodegen/archive/refs/tags/${pkgver}.tar.gz") sha512sums=('50257433ed205723bf7faf5ec3aecbfa50492259fe38b623c40485a7491ae93cc5eef495d901667b9e1517af2e9177b9aa79cf3a3b872768c4d162616d77666b') build() { cd "${_name}-${pkgver}" SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} python -m build --wheel --no-isolation } package() { cd "${_name}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: