94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
39 lines
883 B
Nix
39 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, numpy
|
|
, lxml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trimesh";
|
|
version = "3.21.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wtGt3PUCUiSIiQRA3NxO1nPE35XQDipWfrwSKdDBhtE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [ lxml ];
|
|
|
|
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
|
|
'';
|
|
|
|
pythonImportsCheck = [ "trimesh" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for loading and using triangular meshes";
|
|
homepage = "https://trimsh.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|