2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-30 22:05:00 +00:00
|
|
|
, setuptools
|
2023-10-19 13:55:26 +00:00
|
|
|
, pytestCheckHook
|
2023-08-04 22:07:22 +00:00
|
|
|
, pythonOlder
|
2021-08-22 07:53:02 +00:00
|
|
|
, numpy
|
2023-03-30 22:05:00 +00:00
|
|
|
, lxml
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trimesh";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "4.1.3";
|
2023-03-30 22:05:00 +00:00
|
|
|
format = "pyproject";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-SIHIA6HKo3Ka6rmZrBZfSmN/sNfEjSImYUtbtQs3ozQ=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2023-10-19 13:55:26 +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";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://trimsh.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;
|
2023-10-19 13:55:26 +00:00
|
|
|
maintainers = with maintainers; [ gebner pbsds ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|