me
/
guix
Archived
1
0
Fork 0

gnu: guix-jupyter: Define 'HOME' prior to 'check' phase.

Fixes <https://issues.guix.gnu.org/57077>.
Reported by Andreas Enge <andreas@enge.fr>.

* gnu/packages/package-management.scm (guix-jupyter)[arguments]: Add
'define-home' phase.
Ludovic Courtès 2023-01-20 10:57:00 +01:00 committed by Ludovic Courtès
parent 43b7a033e3
commit b60f3941b9
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 10 additions and 2 deletions

View File

@ -1666,8 +1666,16 @@ This package just includes the agent component.")))
"\",\n\t\t\""))
(("guix-jupyter-kernel.scm")
(string-append out "/share/guile/site/3.0/"
"guix-jupyter-kernel.scm")))
#t))))))
"guix-jupyter-kernel.scm"))))))
(add-before 'check 'define-home
(lambda _
;; IPython goes awry when HOME points to a non-existent
;; directory:
;;
;; IPython/paths.py:70: UserWarning: IPython parent '/homeless-shelter' is not a writable location, using a temp directory.
;;
;; This in turn leads to test failures, so define HOME.
(setenv "HOME" (getcwd)))))))
(native-inputs
(list autoconf
automake