lilac/repo/python-pfzy/PKGBUILD
2024-06-18 11:01:36 +00:00

24 lines
711 B
Bash

pkgbase='python-pfzy'
pkgname=('python-pfzy')
_module='pfzy'
pkgver='0.3.4'
pkgrel=6
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')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('717ea765dd10b63618e7298b2d98efd819e0b30cd5905c9707223dceeb94b3f1')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}