mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
python3Packages.trimesh: 3.23.5 -> 4.0.0
Changelog: https://github.com/mikedh/trimesh/releases/tag/4.0.0
This commit is contained in:
parent
8cb5f2bf90
commit
109142f963
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user