[arch-commits] Commit in python-textdistance/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:49:36 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:49:36
  Author: felixonmars
Revision: 1059367

archrelease: copy trunk to community-staging-any

Added:
  python-textdistance/repos/community-staging-any/
  python-textdistance/repos/community-staging-any/PKGBUILD
    (from rev 1059365, python-textdistance/trunk/PKGBUILD)

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

Copied: python-textdistance/repos/community-staging-any/PKGBUILD (from rev 1059365, python-textdistance/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:49:36 UTC (rev 1059367)
@@ -0,0 +1,47 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=textdistance
+pkgname=python-${_pkg}
+pkgver=4.2.1
+pkgrel=2
+pkgdesc="Compute distance between sequences"
+arch=(any)
+url="https://github.com/life4/textdistance"
+license=(MIT)
+depends=(
+    python-abydos
+    python-jellyfish
+    python-numpy
+    python-levenshtein
+    python-pyxdameraulevenshtein
+)
+makedepends=(python-setuptools)
+checkdepends=(
+    python-pytest
+    python-hypothesis
+    python-isort
+    python-pylev
+    python-py_stringmatching
+    python-tabulate
+)
+# PyPi tarballs do not have the tests
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v.${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('2f475938edbef7faee50deeb000c81877e1165c29ff091b7c871dbcd0a244ca4')
+
+build() {
+  cd ${_pkg}-v.${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-v.${pkgver}
+  # Failing tests, reported by email
+  pytest --deselect tests/test_external.py
+}
+
+package() {
+  cd ${_pkg}-v.${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list