gnu: hypercorn: Honor #:tests? in 'check' phase.
* gnu/packages/python-web.scm (hypercorn)[arguments]: Honor #:tests? in 'check' phase. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
		
							parent
							
								
									556a3ac3af
								
							
						
					
					
						commit
						a6dc9f783f
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -1650,9 +1650,10 @@ RFC6455, regardless of your programming paradigm.")
 | 
				
			||||||
     `(#:phases
 | 
					     `(#:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (replace 'check
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
					           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
 | 
				
			||||||
             (add-installed-pythonpath inputs outputs)
 | 
					             (when tests?
 | 
				
			||||||
             (invoke "pytest" "-vv"))))))
 | 
					               (add-installed-pythonpath inputs outputs)
 | 
				
			||||||
 | 
					               (invoke "python" "-m" "pytest")))))))
 | 
				
			||||||
    ;; Propagate because Hypercorn also exposes functionality over a module.
 | 
					    ;; Propagate because Hypercorn also exposes functionality over a module.
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     `(("python-h11" ,python-h11)
 | 
					     `(("python-h11" ,python-h11)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue