Unverified Commit ff60566e authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #222951 from r-ryantm/auto-update/python310Packages.trimesh

python310Packages.trimesh: 3.20.2 -> 3.21.0
parents 0bfce557 96200c5e
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, numpy
, lxml
}:

buildPythonPackage rec {
  pname = "trimesh";
  version = "3.20.2";
  version = "3.21.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-6tSrWovgVTEccDelUFrw8E1ghyiPmUsEASW8kGPUBhM=";
    hash = "sha256-VRPE+1QLKGy5W99ia5BuPNtmH/eoXulApS8n8SdQSaQ=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [ numpy ];

  # tests are not included in pypi distributions and would require lots of
  # optional dependencies
  doCheck = false;
  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" ];