testing/py3-tika: move from user
This commit is contained in:
parent
0e8074ffce
commit
283f2505cf
1 changed files with 18 additions and 5 deletions
|
@ -9,19 +9,32 @@ arch="noarch"
|
|||
pkgdesc="Apache Tika Python library"
|
||||
url="https://pypi.python.org/project/$_pyname"
|
||||
license="Apache-2.0"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
options="!check" # No testsuite
|
||||
makedepends="
|
||||
py3-setuptools
|
||||
py3-gpep517
|
||||
py3-wheel
|
||||
py3-installer
|
||||
"
|
||||
options="!check" # Failing testsuite
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
092986afd0968d41b6a0274b1f1cac5f6a168bc79cea920f65543c46b6541b6b02eceb0ae89fc254b709421dd75ebe50aad0f17a52becbdb27a541b80a08a0ae py3-tika-2.6.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue