[arch-commits] Commit in python-levenshtein/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Aug 3 10:46:32 UTC 2022


    Date: Wednesday, August 3, 2022 @ 10:46:31
  Author: arojas
Revision: 1259995

Depend on python-rapidfuzz, actually build in build()

Modified:
  python-levenshtein/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-03 10:35:01 UTC (rev 1259994)
+++ PKGBUILD	2022-08-03 10:46:31 UTC (rev 1259995)
@@ -5,17 +5,30 @@
 
 pkgname=python-levenshtein
 pkgver=0.20.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python extension for computing string edit distances and similarities"
 url="https://pypi.python.org/pypi/python-Levenshtein/"
 license=('GPL')
 arch=('x86_64')
-depends=('python')
-makedepends=('python-scikit-build')
-source=("https://files.pythonhosted.org/packages/source/L/Levenshtein/Levenshtein-$pkgver.tar.gz")
-sha512sums=('0b74b619e123454f430a33414a9eb18ea57c5294f5d6a0a0e9cb78b79949f2acbae75c299e7263551b6cc9fad5768707b95592cfc3b5e063038b6ba8f50d218b')
+depends=('python-rapidfuzz')
+makedepends=('python-scikit-build' 'cython' 'rapidfuzz-cpp')
+checkdepends=('python-pytest')
+#source=("https://files.pythonhosted.org/packages/source/L/Levenshtein/Levenshtein-$pkgver.tar.gz")
+source=("https://github.com/maxbachmann/Levenshtein/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('9f3ab4d0e9766980e30956b85142528af2263f557d7cd3de50684fcb9aa713cdd7fd011762d16b2e2f0fe0a54e217c6d8f45246a6ccd33a4ea132ce0674c0a0f')
 
+build() {
+  cd Levenshtein-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd Levenshtein-$pkgver
+  PYTHONPATH=`echo "$PWD"/_skbuild/linux-x86_64-*/setuptools/lib.linux-x86_64-*` \
+  pytest
+}
+
 package() {
   cd Levenshtein-$pkgver
-  python setup.py build install -O1 --prefix=/usr --root="$pkgdir"
+  python setup.py install -O1 --root="$pkgdir"
 }



More information about the arch-commits mailing list