blob: 185a8a4fdf678c20e92fb831ba6b545bc695b06f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, numpy
, lxml
}:
buildPythonPackage rec {
pname = "trimesh";
version = "3.21.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-VRPE+1QLKGy5W99ia5BuPNtmH/eoXulApS8n8SdQSaQ=";
};
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 ];
};
}
|