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

Bruno Pagani archange at archlinux.org
Wed Dec 23 19:18:05 UTC 2020


    Date: Wednesday, December 23, 2020 @ 19:18:04
  Author: archange
Revision: 785136

archrelease: copy trunk to community-x86_64

Added:
  python-abydos/repos/community-x86_64/
  python-abydos/repos/community-x86_64/PKGBUILD
    (from rev 785135, python-abydos/trunk/PKGBUILD)

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

Copied: python-abydos/repos/community-x86_64/PKGBUILD (from rev 785135, python-abydos/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-12-23 19:18:04 UTC (rev 785136)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=abydos
+pkgname=python-${_pkg,,}
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="NLP/IR library for Python"
+arch=(x86_64)
+url="https://github.com/chrislit/abydos"
+license=(GPL3)
+depends=(python-numpy)
+makedepends=(python-setuptools)
+checkdepends=(
+    python-pytest
+    python-deprecation
+    python-nltk
+)
+# No tests in PyPi tarballs
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('0d46be1a40cfcdcd9ff9d052828c6ea57f5e1e2378373761c963c4a0cfcc5512')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  rm setup.cfg
+  pytest
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+}



More information about the arch-commits mailing list