summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-02-04 15:45:35 +0000
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:55 +0100
commita74315b30d4f6fe4f83072e8a22fa62e1abd9c3d (patch)
tree0bcf2386f304f558cf69b43f9bd12f9d8a19465c /gnu/packages
parentff260debed841af59e7a0b0a4c85ed2b74321e4b (diff)
gnu: python-mathics-core: Fix build.
* gnu/packages/maths.scm (python-mathics-core): [phases] {set-home}: Move before {build}. Relates-to: guix/guix#5892 Change-Id: I682c1e5331e7e3a4f99fa5a5322f79e6093b6b5a
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maths.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index b24eb541116..1bc769b985f 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -11416,6 +11416,11 @@ the Wolfram language.")
"-o" "op-tables.json")
(invoke "mathics3-generate-operator-json-table"
"-o" "operator-tables.json"))))
+ (add-before 'build 'set-home
+ (lambda _
+ ;; The sanity check imports mathics which tries to create a
+ ;; config directory in HOME. Set HOME to a writable location.
+ (setenv "HOME" "/tmp")))
(add-before 'check 'prepare-check
(lambda* (#:key inputs outputs #:allow-other-keys)
;(copy-file "operator-tables.json" "mathics/data/operator-tables.json")
@@ -11425,12 +11430,7 @@ the Wolfram language.")
(lambda _
;; Otherwise 210 tests fail because the real output would use
;; unicode arrow characters. With this, only 18 (symbolic) tests fail.
- (setenv "MATHICS_CHARACTER_ENCODING" "ASCII")))
- (add-before 'check 'set-home
- (lambda _
- ;; The sanity check imports mathics which tries to create a
- ;; config directory in HOME. Set HOME to a writable location.
- (setenv "HOME" "/tmp"))))))
+ (setenv "MATHICS_CHARACTER_ENCODING" "ASCII"))))))
(build-system pyproject-build-system)
(native-inputs (list python-pytest python-setuptools python-wheel))
(inputs (list llvm))