python3Packages.trimesh: 3.23.5 -> 4.0.0

Changelog: https://github.com/mikedh/trimesh/releases/tag/4.0.0
This commit is contained in:
Peder Bergebakken Sundt 2023-10-13 14:36:19 +02:00 committed by Yt
parent 8cb5f2bf90
commit 109142f963

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
, pythonOlder
, numpy
, lxml
@ -9,27 +10,28 @@
buildPythonPackage rec {
pname = "trimesh";
version = "3.23.5";
version = "4.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vf1mnszEs/r/IyggCklAjNXsrZ8ZtgIsSttVS7s6JiE=";
hash = "sha256-zPGD9VdMMSdThd/IV2wLF4NA1lZQy9a0SOyOkUGHK7c=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ lxml ];
nativeCheckInputs = [ lxml pytestCheckHook ];
checkPhase = ''
# Disable test_load because requires loading models which aren't part of the tarball
substituteInPlace tests/test_minimal.py --replace "test_load" "disable_test_load"
python tests/test_minimal.py
'';
disabledTests = [
# requires loading models which aren't part of the Pypi tarball
"test_load"
];
pytestFlagsArray = [ "tests/test_minimal.py" ];
pythonImportsCheck = [ "trimesh" ];
@ -38,6 +40,6 @@ buildPythonPackage rec {
homepage = "https://trimsh.org/";
changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
maintainers = with maintainers; [ gebner pbsds ];
};
}