Commit ed88e2ef authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python313Packages.trimesh: add optional-dependencies.easy

parent 5b705e3c
Loading
Loading
Loading
Loading
+40 −1
Original line number Diff line number Diff line
{
  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";