# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=py3-thinc pkgver=7.4.1 pkgrel=1 pkgdesc="Practical Machine Learning for NLP" url="https://github.com/explosion/thinc" arch="x86_64 x86" license="MIT" depends="python3 py3-cymem py3-preshed py3-murmurhash py3-blis py3-plac py3-srsly py3-wasabi py3-catalogue" makedepends="python3-dev py3-setuptools cython" checkdepends="py3-pytest py3-numpy py3-mock py3-tqdm py3-hypothesis" subpackages="$pkgname-doc" source="thinc-$pkgver.tar.gz::https://github.com/explosion/thinc/archive/v$pkgver.tar.gz" builddir="$srcdir/thinc-$pkgver" build() { python3 setup.py build_ext --inplace } check() { # disable some tests due to use of py3-hypothesis >= 5.0.0 pytest-3 thinc \ --ignore=thinc/tests/integration/test_batch_norm.py \ --ignore=thinc/tests/unit/test_affine.py \ --ignore=thinc/tests/unit/test_ops.py } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" } sha512sums="ff4f86c78f1cd6ebb48d15f6f944c56d40fd7f264a14e055a5b1b24b3b95121b8cb789a152fa408220606e4b6022fc3ce3233f7effa86890db28b60533764d79 thinc-7.4.1.tar.gz"