From 42a78d572abdddbed86b69de0e87468823bfe8d9 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 1 Jan 2021 15:22:02 +0100 Subject: [PATCH 4/6] gnu: FreeCad: Update to 0.18.5-1.7616153. Fixes Draft module import errors * gnu/packages/engineering.scm (freecad): Update to 0.18.5-1.7616153. [inputs]: Add python-pivy. --- gnu/packages/engineering.scm | 41 ++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index e436994492..4bb7f68939 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2432,28 +2432,21 @@ full programmatic control over your models.") (license license:gpl2+))) (define-public freecad - (package - (name "freecad") - (version "0.18.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/FreeCAD/FreeCAD") - (commit version))) - (modules '((guix build utils))) - (snippet - '(begin - ;; Fix build with Python 3.8, see - ;; . - (substitute* "src/Base/swigpyrun.inl" - (("PyObject \\*modules = interp->modules;") - "PyObject *modules = PyEval_GetBuiltins();")) - #t)) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0r31jzzkamf76l19fb175hhv48irk06fpi8ldxdlr31w8c1ix4aa")))) + (let ((commit-ref "7616153b3c31ace006169cdc2fdafab484498858") + (revision "1")) + (package + (name "freecad") + (version (git-version "0.18.5" revision commit-ref)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FreeCAD/FreeCAD") + (commit commit-ref))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16965yxnp2pq7nm8z3p0pjkzjdyq62vfrj8j3nk26bwc898czyn2")))) (build-system qt-build-system) (native-inputs `(("doxygen" ,doxygen) @@ -2479,6 +2472,7 @@ full programmatic control over your models.") ("python-pyside-2" ,python-pyside-2) ("python-pyside-2-tools" ,python-pyside-2-tools) ("python-shiboken-2" ,python-shiboken-2) + ("python-pivy" ,python-pivy) ("python-wrapper" ,python-wrapper) ("qtbase" ,qtbase) ("qtsvg" ,qtsvg) @@ -2546,7 +2540,8 @@ customization.") license:lgpl2.1+ license:lgpl2.0+ license:gpl3+ - license:bsd-3)))) + license:bsd-3))))) + (define-public libmedfile (package -- 2.29.2