depot/third_party/nixpkgs/pkgs/development/python-modules/trimesh/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
965 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
, pythonOlder
, numpy
, lxml
}:
buildPythonPackage rec {
pname = "trimesh";
version = "4.3.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-FFDb0aro3YJe3dVsWn19GzXK1+/Cxj1TXhlWlXfCWRY=";
};
nativeBuildInputs = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [ lxml pytestCheckHook ];
disabledTests = [
# requires loading models which aren't part of the Pypi tarball
"test_load"
];
pytestFlagsArray = [ "tests/test_minimal.py" ];
pythonImportsCheck = [ "trimesh" ];
meta = with lib; {
description = "Python library for loading and using triangular meshes";
homepage = "https://trimsh.org/";
changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ gebner pbsds ];
};
}