gnu: python-scipy: Run tests conditionally.
* gnu/packages/python-science.scm (python-scipy)[arguments]: Respect TESTS? in 'CHECK phase.
This commit is contained in:
		
							parent
							
								
									373d2099c9
								
							
						
					
					
						commit
						078934bdd4
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -160,11 +160,12 @@ atlas_libs = openblas
 | 
			
		|||
         ;; within the source directory.
 | 
			
		||||
         (delete 'check)
 | 
			
		||||
         (add-after 'install 'check
 | 
			
		||||
           (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
			
		||||
           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
 | 
			
		||||
             (when tests?
 | 
			
		||||
               (add-installed-pythonpath inputs outputs)
 | 
			
		||||
               (with-directory-excursion "/tmp"
 | 
			
		||||
                 (invoke "python" "-c"
 | 
			
		||||
                       "import scipy; scipy.test(verbose=2)")))))))
 | 
			
		||||
                         "import scipy; scipy.test(verbose=2)"))))))))
 | 
			
		||||
    (home-page "https://www.scipy.org/")
 | 
			
		||||
    (synopsis "The Scipy library provides efficient numerical routines")
 | 
			
		||||
    (description "The SciPy library is one of the core packages that make up
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue