summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31223e7cfe1df7ca742bfc2c20c934e58d5ac89d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Fan Chung <thesummernightcat@gmail.com>
pkgname=python-textacy
_pkgname=${pkgname:7}
pkgver=0.12.0
pkgrel=1
pkgdesc="A Python library for performing a variety of natural language processing (NLP) tasks, built on the high-performance spaCy library."
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('Apache')
makedepends=(python-build python-installer python-wheel)
depends=(
    python-cachetools
    python-catalogue
    python-cytoolz
    python-jellyfish
    python-joblib
    python-networkx
    python-numpy
    python-pyphen
    python-requests
    python-scipy
    python-scikit-learn
    python-spacy
    python-tqdm
)
optdepends=('python-matplotlib: for visualization functionality')
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('2c92bdd6b47305447b64e4cb6cc43c11675f021f910a8074bc8149dbf5325e5b')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl
}