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.
This commit is contained in:
		
							parent
							
								
									43b7a033e3
								
							
						
					
					
						commit
						b60f3941b9
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue