backports/py3-trimesh: new aport
This commit is contained in:
parent
4a6a864264
commit
9cda465dc0
1 changed files with 63 additions and 0 deletions
63
backports/py3-trimesh/APKBUILD
Normal file
63
backports/py3-trimesh/APKBUILD
Normal file
|
@ -0,0 +1,63 @@
|
|||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
||||
pkgname=py3-trimesh
|
||||
pkgver=3.21.5
|
||||
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"
|
||||
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="
|
||||
4bf6879294042aea9bce65a79c1717de1bec92a0a9f6f420ed98dbc4cb5260dba4656ee0074f77d46d37c910838c7a4b7c7dff0249aa38109bb677993f886291 py3-trimesh-3.21.5.tar.gz
|
||||
"
|
Loading…
Reference in a new issue