gnu: python-spherical-geometry: Enable tests.
* gnu/packages/astronomy.scm (python-spherical-geometry): Enable tests.
[build-system]: Switch to pyproject-build-system.
[arguments]{phases}: Add 'build-extensions phase.
Signed-off-by: Christopher Baines <mail@cbaines.net>
			
			
This commit is contained in:
		
							parent
							
								
									a8c1c98690
								
							
						
					
					
						commit
						0d7e51d8ee
					
				
					 1 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
					@ -2601,19 +2601,22 @@ of axis order, spatial projections, and spectral units that exist in the wild.
 | 
				
			||||||
       (file-name (git-file-name name version))
 | 
					       (file-name (git-file-name name version))
 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z"))))
 | 
					        (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z"))))
 | 
				
			||||||
    (build-system python-build-system)
 | 
					    (build-system pyproject-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     (list
 | 
					     (list
 | 
				
			||||||
      ;; NOTE: (Sharlatan-20220523T231348+0100): Tests depends on old Python2
 | 
					      ;; XXX: Disable one failing test
 | 
				
			||||||
      ;; libarry `sphere'
 | 
					      ;; See https://github.com/spacetelescope/spherical_geometry/issues/252
 | 
				
			||||||
      #:tests? #f
 | 
					      #:test-flags #~(list "-k" "not test_overlap")
 | 
				
			||||||
      #:phases
 | 
					      #:phases
 | 
				
			||||||
      #~(modify-phases %standard-phases
 | 
					      #~(modify-phases %standard-phases
 | 
				
			||||||
          (add-after 'unpack 'preparations
 | 
					          (add-after 'unpack 'preparations
 | 
				
			||||||
            (lambda _
 | 
					            (lambda _
 | 
				
			||||||
              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
 | 
					              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
 | 
				
			||||||
              ;; Use our own libraries in place of bundles.
 | 
					              ;; Use our own libraries in place of bundles.
 | 
				
			||||||
              (setenv "USE_SYSTEM_QD" "1"))))))
 | 
					              (setenv "USE_SYSTEM_QD" "1")))
 | 
				
			||||||
 | 
					          (add-before 'check 'build-extensions
 | 
				
			||||||
 | 
					            (lambda _
 | 
				
			||||||
 | 
					              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list python-pytest
 | 
					     (list python-pytest
 | 
				
			||||||
           python-setuptools-scm))
 | 
					           python-setuptools-scm))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue