1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 pythonOlder,
8 numpy,
9 lxml,
10}:
11
12buildPythonPackage rec {
13 pname = "trimesh";
14 version = "4.4.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-2vblZxXeLpPdkF6Sb5uxDSPcQVf5ckqnyqtdDiiWPlY=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 dependencies = [ numpy ];
27
28 nativeCheckInputs = [
29 lxml
30 pytestCheckHook
31 ];
32
33 disabledTests = [
34 # requires loading models which aren't part of the Pypi tarball
35 "test_load"
36 ];
37
38 pytestFlagsArray = [ "tests/test_minimal.py" ];
39
40 pythonImportsCheck = [ "trimesh" ];
41
42 meta = with lib; {
43 description = "Python library for loading and using triangular meshes";
44 homepage = "https://trimsh.org/";
45 changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [
48 gebner
49 pbsds
50 ];
51 };
52}