gnu: python-hy: Honor #:tests? flag.
* gnu/packages/python-xyz.scm (python-hy)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
		
							parent
							
								
									9e6b0775f4
								
							
						
					
					
						commit
						c1c36f1351
					
				
					 1 changed files with 7 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -13022,12 +13022,13 @@ with a new public API, and RPython support.")
 | 
			
		|||
     '(#:phases
 | 
			
		||||
       (modify-phases %standard-phases
 | 
			
		||||
         (replace 'check
 | 
			
		||||
           (lambda _
 | 
			
		||||
           (lambda* (#:key tests? #:allow-other-keys)
 | 
			
		||||
             (when tests?
 | 
			
		||||
               (invoke "python" "-m" "pytest" "-k"
 | 
			
		||||
                       (string-append   ; skip some failed tests
 | 
			
		||||
                        "not test_bin_hy_sys_executable"
 | 
			
		||||
                        " and not test_bin_hy_circular_macro_require"
 | 
			
		||||
                      " and not test_macro_from_module")))))))
 | 
			
		||||
                        " and not test_macro_from_module"))))))))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     (list python-pytest))
 | 
			
		||||
    (propagated-inputs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue