aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-thinc/APKBUILD
blob: f250773d80e7ee9ab63c58b7ff2dcbc60b02b6b1 (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
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-thinc
pkgver=7.3.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"
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="a2aafb1c0d38c4146578f6ac15db93adf839bb7aaf173dd9aaf829eab0e6d682ca30659231d08926dccec4ba4f76bf1d01a2b2762aa8dbe9da21b8886d06d368  thinc-7.3.1.tar.gz"