64 lines
1.7 KiB
Text
64 lines
1.7 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-trimesh
|
|
pkgver=3.22.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"
|
|
options="!check" # Failing test units
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
27952e0d29ccd110d4087b4144e0923706bed3cd0734e7a17d7f55738c6322849c5dad04ab4ecfe0638bc16d65d1e647d08905a396dd6ebd1f78c833a8b95636 py3-trimesh-3.22.1.tar.gz
|
|
"
|