gnu: python2-cliapp: Enable tests.
* gnu/packages/python.scm (python2-cliapp)[arguments]: Replace 'check' phase with custom function.
This commit is contained in:
		
							parent
							
								
									fe36ecf5c8
								
							
						
					
					
						commit
						689042e526
					
				
					 1 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
					@ -14093,7 +14093,22 @@ parse many formal languages.")
 | 
				
			||||||
         "1i9gik0xrj6jmi95s5w988jl1y265baz5xm5pbqdyvsh8h9ln6yq"))))
 | 
					         "1i9gik0xrj6jmi95s5w988jl1y265baz5xm5pbqdyvsh8h9ln6yq"))))
 | 
				
			||||||
    (build-system python-build-system)
 | 
					    (build-system python-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:python ,python-2))
 | 
					     `(#:python ,python-2
 | 
				
			||||||
 | 
					       #:phases
 | 
				
			||||||
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         ;; check phase needs to be run before the build phase. If not,
 | 
				
			||||||
 | 
					         ;; coverage-test-runner looks for tests for the built source files,
 | 
				
			||||||
 | 
					         ;; and fails.
 | 
				
			||||||
 | 
					         (delete 'check)
 | 
				
			||||||
 | 
					         (add-before 'build 'check
 | 
				
			||||||
 | 
					           (lambda _
 | 
				
			||||||
 | 
					             ;; Disable python3 tests
 | 
				
			||||||
 | 
					             (substitute* "check"
 | 
				
			||||||
 | 
					               (("python3") "# python3"))
 | 
				
			||||||
 | 
					             (zero? (system* "./check")))))))
 | 
				
			||||||
 | 
					    (native-inputs
 | 
				
			||||||
 | 
					     `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
 | 
				
			||||||
 | 
					       ("python2-pep8" ,python2-pep8)))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     `(("python2-pyaml" ,python2-pyaml)))
 | 
					     `(("python2-pyaml" ,python2-pyaml)))
 | 
				
			||||||
    (home-page "https://liw.fi/cliapp/")
 | 
					    (home-page "https://liw.fi/cliapp/")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue