gnu: python-gnupg: Honor #:tests? flag.
* gnu/packages/gnupg.scm (python-gnupg)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
		
							parent
							
								
									69c7dd8090
								
							
						
					
					
						commit
						e9d0ebe446
					
				
					 1 changed files with 11 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -583,7 +583,8 @@ decrypt messages using the OpenPGP format by making use of GPGME.")
 | 
			
		|||
     `(#:phases
 | 
			
		||||
       (modify-phases %standard-phases
 | 
			
		||||
         (replace 'check
 | 
			
		||||
           (lambda _
 | 
			
		||||
           (lambda* (#:key tests? #:allow-other-keys)
 | 
			
		||||
             (when tests?
 | 
			
		||||
               (substitute* "test_gnupg.py"
 | 
			
		||||
                 ;; Unsure why this test fails.
 | 
			
		||||
                 (("'test_search_keys'") "True")
 | 
			
		||||
| 
						 | 
				
			
			@ -592,7 +593,7 @@ decrypt messages using the OpenPGP format by making use of GPGME.")
 | 
			
		|||
               ;; The doctests are extremely slow and sometimes time out,
 | 
			
		||||
               ;; so we disable them.
 | 
			
		||||
               (invoke "python"
 | 
			
		||||
                     "test_gnupg.py" "--no-doctests"))))))
 | 
			
		||||
                       "test_gnupg.py" "--no-doctests")))))))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     `(("gnupg" ,gnupg)))
 | 
			
		||||
    (home-page "https://pythonhosted.org/python-gnupg/index.html")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue