[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Oct 12 11:13:34 UTC 2020


    Date: Monday, October 12, 2020 @ 11:13:33
  Author: felixonmars
Revision: 723599

addpkg: python-fuzzywuzzy 0.18.0-1

Added:
  python-fuzzywuzzy/
  python-fuzzywuzzy/repos/
  python-fuzzywuzzy/trunk/
  python-fuzzywuzzy/trunk/PKGBUILD

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

Added: python-fuzzywuzzy/trunk/PKGBUILD
===================================================================
--- python-fuzzywuzzy/trunk/PKGBUILD	                        (rev 0)
+++ python-fuzzywuzzy/trunk/PKGBUILD	2020-10-12 11:13:33 UTC (rev 723599)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: fenuks
+
+pkgname=python-fuzzywuzzy
+pkgver=0.18.0
+pkgrel=1
+pkgdesc="Fuzzy string matching like a boss"
+arch=("any")
+url="https://pypi.python.org/pypi/fuzzywuzzy"
+license=('GPL2')
+depends=('python')
+optdepends=('python-levenshtein: provides a 4-10x speedup in string matching')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis' 'python-levenshtein' 'python-pycodestyle')
+source=("https://github.com/seatgeek/fuzzywuzzy/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('26795bd6c319a8c789d62ecbe95e29a97711f0176d3beea04ce510981095f696')
+
+build() {
+  cd fuzzywuzzy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd fuzzywuzzy-$pkgver
+  # https://github.com/seatgeek/fuzzywuzzy/issues/284
+  pytest --deselect test_fuzzywuzzy_pytest.py::test_process_warning
+}
+
+package() {
+  cd fuzzywuzzy-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}


More information about the arch-commits mailing list