gnu: freecad: Fix build with python-3.8

* gnu/packages/engineering.scm (freecad)[source](modules, snippet): New fields.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
Boris A. Dekshteyn 2020-05-10 22:23:18 +12:00 committed by Marius Bakke
parent 38b46a3e32
commit 72099cb0f2
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -2312,6 +2312,15 @@ (define-public freecad
(uri (git-reference
(url "https://github.com/FreeCAD/FreeCAD.git")
(commit version)))
(modules '((guix build utils)))
(snippet
'(begin
;; Fix build with Python 3.8, see
;; <https://tracker.freecadweb.org/view.php?id=4143>.
(substitute* "src/Base/swigpyrun.inl"
(("PyObject \\*modules = interp->modules;")
"PyObject *modules = PyEval_GetBuiltins();"))
#t))
(file-name (git-file-name name version))
(sha256
(base32