Date: Wednesday, August 3, 2022 @ 10:18:08 Author: arojas Revision: 1259989
New python-levenshtein dependency Added: python-jarowinkler/ python-jarowinkler/trunk/ python-jarowinkler/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-jarowinkler/trunk/PKGBUILD =================================================================== --- python-jarowinkler/trunk/PKGBUILD (rev 0) +++ python-jarowinkler/trunk/PKGBUILD 2022-08-03 10:18:08 UTC (rev 1259989) @@ -0,0 +1,36 @@ +# Maintainer: +# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_name=jarowinkler +pkgname=python-$_name +pkgver=1.2.0 +pkgrel=2 +pkgdesc='A library for fast approximate string matching using Jaro and Jaro-Winkler similarity' +arch=(x86_64) +url='https://github.com/maxbachmann/JaroWinkler' +license=(MIT) +depends=(python) +#makedepends=(jarowinkler-cpp python-rapidfuzz-capi python-scikit-build) +makedepends=(python-build python-installer python-setuptools python-scikit-build python-rapidfuzz-capi ninja) +checkdepends=(python-hypothesis python-pytest) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('7118976b9c1dca4ad77c97a0595d3917cead5f9b2856b14948a3bcf5f2438c44') + +build() { + cd $_name-$pkgver + JAROWINKLER_BUILD_EXTENSION=1 \ + python -m build --wheel --no-isolation +} + +check() { + cd $_name-$pkgver + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest +} + +package() { + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +}