mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
community/py3-tika: enable tests
This commit is contained in:
parent
5ae58eb1e9
commit
dbb200445f
@ -3,19 +3,31 @@
|
||||
pkgname=py3-tika
|
||||
_pyname="tika"
|
||||
pkgver=2.6.0
|
||||
pkgrel=1
|
||||
arch="noarch"
|
||||
pkgrel=2
|
||||
# x86 | armv7 | armhf: blocked by openjdk
|
||||
# riscv64: Unable to start Tika server
|
||||
arch="noarch !riscv64 !x86 !armv7 !armhf"
|
||||
pkgdesc="Apache Tika Python library"
|
||||
url="https://pypi.python.org/project/tika"
|
||||
license="Apache-2.0"
|
||||
depends="
|
||||
py3-requests
|
||||
"
|
||||
makedepends="
|
||||
py3-setuptools
|
||||
py3-gpep517
|
||||
py3-wheel
|
||||
"
|
||||
options="!check" # Failing testsuite
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/t/tika/tika-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
"
|
||||
checkdepends="
|
||||
py3-pytest
|
||||
py3-pytest-benchmark
|
||||
py3-pytest-cov
|
||||
py3-coveralls
|
||||
py3-yaml
|
||||
openjdk21-jre-headless
|
||||
"
|
||||
source="$pkgname-$pkgver-gh.tar.gz::https://github.com/chrismattmann/tika-python/archive/refs/tags/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/tika-python-$pkgver
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
@ -25,7 +37,10 @@ build() {
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest -v
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
# test_url | test_remote_jpg: urllib.error.HTTPError: HTTP Error 404: Not Found
|
||||
.testenv/bin/python3 -m pytest -v -k 'not test_url and not test_remote_jpg'
|
||||
}
|
||||
|
||||
package() {
|
||||
@ -34,5 +49,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
092986afd0968d41b6a0274b1f1cac5f6a168bc79cea920f65543c46b6541b6b02eceb0ae89fc254b709421dd75ebe50aad0f17a52becbdb27a541b80a08a0ae py3-tika-2.6.0.tar.gz
|
||||
8182fc9e4905343bac9e00b60fbcc1434559d7b1bdec17b2d32a5e09209efe1734a8858c08fbb19906c747d98351f9a4deceefeb67c5430e4bb481afe7af4e8f py3-tika-2.6.0-gh.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user