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.5.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-FlsS8omMPo3smaLtBexcg+r6L8gVC6jDD4s6YvaTQz8=";
22 };
23
24 build-system = [ 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://trimesh.org/";
45 changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}";
46 license = licenses.mit;
47 mainProgram = "trimesh";
48 maintainers = with maintainers; [
49 gebner
50 pbsds
51 ];
52 };
53}