python313Packages.trimesh: add optional-dependencies.easy

This commit is contained in:
Peder Bergebakken Sundt 2025-04-23 14:13:55 +02:00
parent 5b705e3cde
commit ed88e2ef17

View File

@ -1,5 +1,6 @@
{
lib,
python,
buildPythonPackage,
fetchFromGitHub,
setuptools,
@ -7,6 +8,7 @@
pythonOlder,
numpy,
lxml,
trimesh,
}:
buildPythonPackage rec {
@ -27,6 +29,31 @@ buildPythonPackage rec {
dependencies = [ numpy ];
optional-dependencies = with python.pkgs; {
easy =
[
colorlog
manifold3d
charset-normalizer
lxml
jsonschema
networkx
svg-path
pycollada
shapely
xxhash
rtree
httpx
scipy
pillow
# vhacdx # not packaged
mapbox-earcut
]
++ lib.optionals embreex.meta.available [
embreex
];
};
nativeCheckInputs = [
lxml
pytestCheckHook
@ -39,7 +66,19 @@ buildPythonPackage rec {
pytestFlagsArray = [ "tests/test_minimal.py" ];
pythonImportsCheck = [ "trimesh" ];
pythonImportsCheck = [
"trimesh"
"trimesh.ray"
"trimesh.path"
"trimesh.path.exchange"
"trimesh.scene"
"trimesh.voxel"
"trimesh.visual"
"trimesh.viewer"
"trimesh.exchange"
"trimesh.resources"
"trimesh.interfaces"
];
meta = {
description = "Python library for loading and using triangular meshes";