1 # Maintainer: Bruno Pagani <archange@archlinux.org>
4 pkgname=python-${_pkg,,}
7 pkgdesc="NLP/IR library for Python"
9 url="https://github.com/chrislit/abydos"
11 depends=(python-numpy)
12 makedepends=(python-setuptools)
18 # No tests in PyPi tarballs
19 #source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
20 source=(${url}/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz
22 sha256sums=('0d46be1a40cfcdcd9ff9d052828c6ea57f5e1e2378373761c963c4a0cfcc5512'
23 '33d7c2d13f7e87c33c6f92caf934b6eb10b9503b1334068aee7b4de6bc2660e3')
27 patch -Np1 -i ../python310.patch
28 find -name '*.py' -exec sed -e 's|from numpy import float |from numpy import float_ |g' \
29 -e 's|numpy import int |numpy import int_ |g' \
30 -e 's|dtype=np\.bool)|dtype=np.bool_)|g' \
31 -e 's|dtype=np\.float)|dtype=np.float_)|g' -i {} \;
47 python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1