File PKGBUILD of Package python-pfzy

# Maintainer : James Ed Randson <jimedrand@disroot.org>

pkgbase='python-pfzy'
pkgname=('python-pfzy')
_module='pfzy'
pkgver='0.3.4'
pkgrel=3
pkgdesc="Python port of the fzy fuzzy string matching algorithm"
url="https://github.com/kazhala/pfzy"
depends=('python')
makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-wheel')
license=('MIT')
arch=('any')
_commit=32b50c077c86bfccc7bed4881c5a2b823518f5450a30e639db5d3711952e
source=("https://files.pythonhosted.org/packages/d9/5a/${_commit}/pfzy-${pkgver}.tar.gz")
sha512sums=('5ec3dfb8ab62bcf3018d6a3cf09158c25079d10ee657f7b9c094d4cfa948994148ac5710d701f505fc73ed51aeb5866eca1b3981bf7777e4d6aae36b05888385')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}
openSUSE Build Service is sponsored by