Commit 109142f9 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by Yt
Browse files

python3Packages.trimesh: 3.23.5 -> 4.0.0

parent 8cb5f2bf
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -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 ];
  };
}