# Maintainer: Lex Black _module=configula pkgname=python-${_module} pkgver=0.5.4 pkgrel=1 pkgdesc="creates config for papermerge-core" arch=(any) url="https://github.com/papermerge/configula" license=(Apache) depends=(python-tomlkit) makedepends=(python-build python-installer python-wheel python-poetry-core) source=(https://files.pythonhosted.org/packages/source/${_module::1}/$_module/${_module//-/_}-$pkgver.tar.gz 001_files-in-base.patch) sha256sums=('a1d9d4f6dc48d024a4fcd0d5de2751cf1765ba9c9adeb0530c9ad1f8eed5cf79' 'ebf889321789bd70fe010518a57a42df47ac4ca964fcd02d6cc8d7a145aca43a') prepare() { cd "${_module//-/_}-${pkgver}" # Without this patch files would get installed into base site-packages dir patch -Np1 -i "${srcdir}"/001_files-in-base.patch } build() { cd "${_module//-/_}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${_module//-/_}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl }