gnu: python-deprecated: Honor #:tests? flag.
* gnu/packages/python-xyz.scm (python-deprecated)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
		
							parent
							
								
									af4ce7bd41
								
							
						
					
					
						commit
						a56b000745
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -4362,8 +4362,9 @@ software version simply.")
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:phases (modify-phases %standard-phases
 | 
					     `(#:phases (modify-phases %standard-phases
 | 
				
			||||||
                  (replace 'check
 | 
					                  (replace 'check
 | 
				
			||||||
                    (lambda _
 | 
					                    (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
                      (invoke "pytest"))))))
 | 
					                      (when tests?
 | 
				
			||||||
 | 
					                        (invoke "pytest")))))))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     `(("python-wrapt" ,python-wrapt)))
 | 
					     `(("python-wrapt" ,python-wrapt)))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue