aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-thinc/APKBUILD
blob: 9b68616ae44a1f96622979d4ad455443069d1f78 (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
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
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"