gnu: python-keyring: Make tests skippable.
* gnu/packages/python-crypto.scm (python-keyring)[arguments]: In custom 'check phase only run tests when tests? is #true.
This commit is contained in:
		
							parent
							
								
									d9784b1a63
								
							
						
					
					
						commit
						f7c966ae02
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -382,8 +382,10 @@ do what is needed for client/server Kerberos authentication based on
 | 
				
			||||||
     `(#:phases
 | 
					     `(#:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (replace 'check
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda _
 | 
					           (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
             (invoke "pytest"))))))
 | 
					             (when tests?
 | 
				
			||||||
 | 
					               (invoke "pytest"))
 | 
				
			||||||
 | 
					             #t)))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("python-toml" ,python-toml)
 | 
					     `(("python-toml" ,python-toml)
 | 
				
			||||||
       ("python-pytest" ,python-pytest)
 | 
					       ("python-pytest" ,python-pytest)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue