2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
numpy,
|
|
|
|
lxml,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trimesh";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "4.5.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-/EnZ+8KeJQF3daAk5d+A9iXJ3dv5gs4+pdNEUHCVBCU=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-03-30 22:05:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ numpy ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
lxml
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-03-30 22:05:00 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires loading models which aren't part of the Pypi tarball
|
|
|
|
"test_load"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/test_minimal.py" ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
pythonImportsCheck = [ "trimesh" ];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2021-08-22 07:53:02 +00:00
|
|
|
description = "Python library for loading and using triangular meshes";
|
2024-10-11 05:15:48 +00:00
|
|
|
homepage = "https://trimesh.org/";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
license = licenses.mit;
|
2024-10-11 05:15:48 +00:00
|
|
|
mainProgram = "trimesh";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
gebner
|
|
|
|
pbsds
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|