[arch-commits] Commit in python-jarowinkler (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Wed Aug 3 10:18:22 UTC 2022


    Date: Wednesday, August 3, 2022 @ 10:18:21
  Author: arojas
Revision: 1259990

archrelease: copy trunk to community-x86_64

Added:
  python-jarowinkler/repos/
  python-jarowinkler/repos/community-x86_64/
  python-jarowinkler/repos/community-x86_64/PKGBUILD
    (from rev 1259989, python-jarowinkler/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: python-jarowinkler/repos/community-x86_64/PKGBUILD (from rev 1259989, python-jarowinkler/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2022-08-03 10:18:21 UTC (rev 1259990)
@@ -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
+}



More information about the arch-commits mailing list