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