Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 39 lines 883 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, numpy 6, lxml 7}: 8 9buildPythonPackage rec { 10 pname = "trimesh"; 11 version = "3.21.7"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-wtGt3PUCUiSIiQRA3NxO1nPE35XQDipWfrwSKdDBhtE="; 17 }; 18 19 nativeBuildInputs = [ setuptools ]; 20 21 propagatedBuildInputs = [ numpy ]; 22 23 nativeCheckInputs = [ lxml ]; 24 25 checkPhase = '' 26 # Disable test_load because requires loading models which aren't part of the tarball 27 substituteInPlace tests/test_minimal.py --replace "test_load" "disable_test_load" 28 python tests/test_minimal.py 29 ''; 30 31 pythonImportsCheck = [ "trimesh" ]; 32 33 meta = with lib; { 34 description = "Python library for loading and using triangular meshes"; 35 homepage = "https://trimsh.org/"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ gebner ]; 38 }; 39}