diff --git a/pkgs/development/python-modules/trimesh/default.nix b/pkgs/development/python-modules/trimesh/default.nix index 10e2d252dc21..fb16df1046bc 100644 --- a/pkgs/development/python-modules/trimesh/default.nix +++ b/pkgs/development/python-modules/trimesh/default.nix @@ -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";