# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=py3-spacy pkgver=2.2.3 pkgrel=0 pkgdesc="Industrial-strength Natural Language Processing (NLP)" url="https://spacy.io/" arch="x86_64" # limited by py3-blis as it has highly optimized routines for x86_64 only # and py3-srsly as it does not pass tests for x86 and aarch64, reported upstream license="MIT" depends=" python3 py3-numpy py3-jsonschema py3-thinc py3-srsly py3-tqdm py3-wasabi py3-pyrsistent py3-plac py3-catalogue " makedepends="python3-dev py3-setuptools cython py3-requests" checkdepends="py3-pytest py3-pytest-timeout py3-mock py3-flake8" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/explosion/spaCy/archive/v$pkgver.tar.gz" builddir=$srcdir/spaCy-$pkgver build() { python3 setup.py build_ext --inplace } check() { pytest-3 spacy } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" } sha512sums="244e4634d296e59f423c6c267534a21948dc0b9143af8e984348132ca36499ea2c2beba345cd9c92c0b7b01c2ed02570488c147433d6276772dcd93f730c66b6 py3-spacy-2.2.3.tar.gz"