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
 | 
					     '(#:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (replace 'check
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda _
 | 
					           (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
 | 
					             (when tests?
 | 
				
			||||||
               (invoke "python" "-m" "pytest" "-k"
 | 
					               (invoke "python" "-m" "pytest" "-k"
 | 
				
			||||||
                       (string-append   ; skip some failed tests
 | 
					                       (string-append   ; skip some failed tests
 | 
				
			||||||
                        "not test_bin_hy_sys_executable"
 | 
					                        "not test_bin_hy_sys_executable"
 | 
				
			||||||
                        " and not test_bin_hy_circular_macro_require"
 | 
					                        " and not test_bin_hy_circular_macro_require"
 | 
				
			||||||
                      " and not test_macro_from_module")))))))
 | 
					                        " and not test_macro_from_module"))))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list python-pytest))
 | 
					     (list python-pytest))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue