1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/py3-trimesh/APKBUILD
2023-03-04 02:21:45 +00:00

62 lines
1.6 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-trimesh
pkgver=3.20.1
pkgrel=0
pkgdesc="Python library for working with triangular meshes"
url="https://github.com/mikedh/trimesh"
# x86, armhf, armv7 Tests fail on int64 to int32 casts on these arches
# s390x, no py3-rtree
# riscv64, no py3-shapely
arch="noarch !x86 !armhf !armv7 !s390x !riscv64"
license="MIT"
depends="
py3-colorlog
py3-jsonschema
py3-lxml
py3-mapbox-earcut
py3-msgpack
py3-networkx
py3-numpy
py3-pillow
py3-requests
py3-rtree
py3-scipy
py3-shapely
py3-svgpath
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest py3-pytest-xdist py3-pyinstrument"
source="$pkgname-$pkgver.tar.gz::https://github.com/mikedh/trimesh/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/trimesh-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
# test_obj.py: no format zae, probably needs more investigation
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest -n auto \
--deselect tests/test_dae.py::DAETest::test_material_round \
--deselect tests/test_dae.py::DAETest::test_obj_roundtrip \
--deselect tests/test_light.py::LightTests::test_scene \
--deselect tests/test_obj.py::OBJTest::test_multi_nodupe
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
09c048e3a22abecafb8f163ab8273565f244ba232cc988673bce09efbc8696ba92aa53ec57bff41fe90605b032ef147889331de38580948ee04333dbfc608635 py3-trimesh-3.20.1.tar.gz
"