# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=py3-thinc pkgver=7.4.0 pkgrel=0 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="4eba0d69adfa0c1dee66ede5bde41369006a8d923fa381e74c0dab2cb4bec7188c48fdeadb269778ad250ea38a8008acac71727f66b0db24abae86b80c587066 thinc-7.4.0.tar.gz"