gnu: python-stsci-stimage: Enable tests.
* gnu/packages/astronomy.scm (python-stsci-stimage): Enable tests.
[arguments]{phases}: Add custom 'check phase.
[native-inputs]: Add python-waf and indent list.
Change-Id: Ifceace1d89aff97e938c4fb95f33525477499949
Signed-off-by: Eric Bavier <bavier@posteo.net>
			
			
This commit is contained in:
		
							parent
							
								
									1144680dab
								
							
						
					
					
						commit
						b7abea0fd6
					
				
					 1 changed files with 16 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -2695,11 +2695,23 @@ task}.")
 | 
			
		|||
    (build-system pyproject-build-system)
 | 
			
		||||
    (arguments
 | 
			
		||||
     (list
 | 
			
		||||
      ;; XXX: Fix failing tests. There are errors to load test files.
 | 
			
		||||
      #:tests? #f))
 | 
			
		||||
      #:phases
 | 
			
		||||
      #~(modify-phases %standard-phases
 | 
			
		||||
          ;; Test steps are taken from GitHub Actions.
 | 
			
		||||
          ;; See https://github.com/spacetelescope/stsci.stimage/issues/27
 | 
			
		||||
          (replace 'check
 | 
			
		||||
            (lambda _
 | 
			
		||||
              (copy-file (string-append
 | 
			
		||||
                #$(this-package-native-input "python-waf") "/bin/waf")
 | 
			
		||||
               "waf")
 | 
			
		||||
              (invoke "python" "waf" "configure" "build" "do_tests"))))))
 | 
			
		||||
    (propagated-inputs (list python-numpy))
 | 
			
		||||
    (native-inputs (list python-codecov python-pytest python-pytest-cov
 | 
			
		||||
                         python-setuptools-scm))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     (list python-codecov
 | 
			
		||||
           python-pytest
 | 
			
		||||
           python-pytest-cov
 | 
			
		||||
           python-setuptools-scm
 | 
			
		||||
           python-waf))
 | 
			
		||||
    (home-page "https://stscistimage.readthedocs.io/en/latest/")
 | 
			
		||||
    (synopsis "STScI image processing")
 | 
			
		||||
    (description "This package provides an astronomical Python package with
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue