-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
{python3packages.py,}meshlab: 2023.12 -> 2025.07 + use system dependencies , and update dependencies #445078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+609
−321
Merged
{python3packages.py,}meshlab: 2023.12 -> 2025.07 + use system dependencies , and update dependencies #445078
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
06083cc
levmar: adopt
nim65s cdcdbe2
levmar: install new header
nim65s 4111474
lib3mf: adopt
nim65s 213cd5f
lib3mf: fix CMake export
nim65s a405bcd
lib3mf: replace-warn -> replace-fail
nim65s dfe018a
tinygltf: init at 2.9.6
nim65s 2f5527c
libigl: dont install opengl headers
nim65s c38f7f8
vcg: adopt
nim65s edbfc2a
vcg: clean
nim65s 5332e5d
vcg: switch to CMake
nim65s 0cc4e7d
corto: 0-unstable-2024-04-05 -> v2025.07
nim65s 33f715c
vclab-nexus: init at 2025.05
nim65s 4949e86
meshlab: adopt
nim65s 8f27f46
meshlab: 2023.12 -> 2025.07 + use system dependencies
nim65s cb2baca
meshlab: darwin updates
nim65s 9802d58
meshlab-unstable: drop
nim65s ae49f7f
meshlab: remove from all-packages, use by-name
nim65s 1376ce7
meshlab: darwin plist: substitute -> patch
nim65s 3994ebf
python3Packages.pymeshlab: 2023.12 -> 2025.7 + use system dependencies
nim65s 034b8dd
python3Packages.pymeshlab: fix on darwin
nim65s 163222a
python3Packages.pymeshlab: dont propagate hook
nim65s e8ea109
openscad: fix on darwin
nim65s 974b7b3
tinygltf: unvendor json & stb
nim65s 044abb1
lib3mf: fix header install
nim65s c2172a7
openscad-unstable: fix use of our lib3mf cmake export
nim65s 9c0cec0
lib3mf: fix lib3mf.pc
nim65s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,106 +1,103 @@ | ||
| { | ||
| stdenv, | ||
| lib, | ||
|
|
||
| stdenv, | ||
| fetchFromGitHub, | ||
| libGLU, | ||
| qtbase, | ||
| qtscript, | ||
| qtxmlpatterns, | ||
| lib3ds, | ||
| bzip2, | ||
| muparser, | ||
| eigen, | ||
| glew, | ||
| gmp, | ||
| levmar, | ||
| qhull, | ||
| fetchpatch, | ||
|
|
||
| # nativeBuildInputs | ||
| cmake, | ||
| cgal, | ||
| boost, | ||
| mpfr, | ||
| xercesc, | ||
| onetbb, | ||
| embree, | ||
| vcg, | ||
| libigl, | ||
| corto, | ||
| openctm, | ||
| structuresynth, | ||
| wrapQtAppsHook, | ||
| python3Packages, | ||
|
|
||
| # propagatedBuildInputs | ||
| meshlab, | ||
|
|
||
| # buildInputs | ||
| libsForQt5, | ||
| llvmPackages, | ||
| glew, | ||
| vcg, | ||
| }: | ||
|
|
||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "pymeshlab"; | ||
| version = "2023.12"; | ||
| version = "2025.7"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "cnr-isti-vclab"; | ||
| repo = "pymeshlab"; | ||
| rev = "v${finalAttrs.version}"; | ||
| hash = "sha256-IOlRdXoUPOJt67g3HqsLchV5aL+JUEks2y1Sy+wpwsg="; | ||
| fetchSubmodules = true; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-LCR2/AyX9uVX4xhZareUL6YlpUsCFiGDMBB5nFp+H6k="; | ||
| }; | ||
|
|
||
| buildInputs = [ | ||
| libGLU | ||
| qtbase | ||
| qtscript | ||
| qtxmlpatterns | ||
| lib3ds | ||
| bzip2 | ||
| muparser | ||
| eigen | ||
| glew | ||
| gmp | ||
| levmar | ||
| qhull | ||
| cgal | ||
| boost | ||
| mpfr | ||
| xercesc | ||
| onetbb | ||
| embree | ||
| vcg | ||
| libigl | ||
| corto | ||
| structuresynth | ||
| openctm | ||
| patches = [ | ||
| # CMake: allow use of system-provided meshlab & pybind11 | ||
| # ref. https://github.com/cnr-isti-vclab/PyMeshLab/pull/445 | ||
| # merged upstream | ||
| (fetchpatch { | ||
| url = "https://github.com/cnr-isti-vclab/PyMeshLab/commit/b363caae4362746b3f9e9326fe7b72a2ec7824d9.patch"; | ||
| hash = "sha256-euKfOx/T0qdeMx79dpEalzmdWsr4nbDFJfKdksvULBw="; | ||
| }) | ||
| ]; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| wrapQtAppsHook | ||
| python3Packages.pybind11 | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| python3Packages.pythonImportsCheckHook | ||
| ]; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| meshlab | ||
| python3Packages.numpy | ||
| ]; | ||
|
|
||
| preConfigure = '' | ||
| substituteInPlace src/meshlab/src/external/libigl.cmake \ | ||
| --replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/libigl-2.4.0 ${libigl} | ||
| substituteInPlace src/meshlab/src/external/nexus.cmake \ | ||
| --replace-fail '$'{NEXUS_DIR}/src/corto ${corto.src} | ||
| substituteInPlace src/meshlab/src/external/levmar.cmake \ | ||
| --replace-fail '$'{LEVMAR_LINK} ${levmar.src} \ | ||
| --replace-warn "MD5 ''${LEVMAR_MD5}" "" | ||
| substituteInPlace src/meshlab/src/external/ssynth.cmake \ | ||
| --replace-fail '$'{SSYNTH_LINK} ${structuresynth.src} \ | ||
| --replace-warn "MD5 ''${SSYNTH_MD5}" "" | ||
| ''; | ||
| buildInputs = [ | ||
| glew | ||
| libsForQt5.qtbase | ||
| vcg | ||
| ] | ||
| ++ lib.optionals stdenv.cc.isClang [ | ||
| llvmPackages.openmp | ||
| ]; | ||
|
|
||
| dontWrapQtApps = true; | ||
|
|
||
| cmakeFlags = [ | ||
| "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}/${python3Packages.python.sitePackages}/pymeshlab" | ||
| "-DVCGDIR=${vcg.src}" | ||
| ]; | ||
|
|
||
| # Get io & filter plugins from meshlab, to avoild render, decorate & edit ones | ||
| postInstall = | ||
| let | ||
| plugins = | ||
| if stdenv.hostPlatform.isDarwin then | ||
| "Applications/meshlab.app/Contents/PlugIns" | ||
| else | ||
| "lib/meshlab/plugins"; | ||
| pyPlugins = if stdenv.hostPlatform.isDarwin then "PlugIns" else "lib/plugins"; | ||
| in | ||
| '' | ||
| install -D -t $out/${python3Packages.python.sitePackages}/pymeshlab/${pyPlugins} \ | ||
| ${meshlab}/${plugins}/libio_* \ | ||
| ${meshlab}/${plugins}/libfilter_* | ||
| ''; | ||
|
|
||
| postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' | ||
| patchelf \ | ||
| --add-needed ${meshlab}/lib/meshlab/libmeshlab-common.so \ | ||
| $out/${python3Packages.python.sitePackages}/pymeshlab/pmeshlab.*.so | ||
| ''; | ||
|
|
||
| pythonImportsCheck = [ "pymeshlab" ]; | ||
|
|
||
| meta = { | ||
| description = "Open source mesh processing python library"; | ||
| homepage = "https://github.com/cnr-isti-vclab/PyMeshLab"; | ||
| license = lib.licenses.gpl3Only; | ||
| maintainers = with lib.maintainers; [ nim65s ]; | ||
| platforms = with lib.platforms; linux; | ||
| platforms = with lib.platforms; linux ++ darwin; | ||
| }; | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.