Archived
1
0
Fork 0

gnu: python-spherical-geometry: Update to 1.3.1.

* gnu/packages/astronomy.scm (python-spherical-geometry): Update to 1.3.1.
[arguments]<#:phases>: Replace 'build-extension with
'prepare-test-environment phase which includes Pytest config set up to
prevent tests from failure.
[native-inputs]: Add python-pytest-astropy-header.
[home-page]: Correct it.

Change-Id: Ib49201f62c32555355df5821383ef416245d4d50
This commit is contained in:
Sharlatan Hellseher 2023-12-16 22:49:36 +00:00
parent f224e2e489
commit 17fb656308
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2602,9 +2602,7 @@ of axis order, spatial projections, and spectral units that exist in the wild.
(define-public python-spherical-geometry (define-public python-spherical-geometry
(package (package
(name "python-spherical-geometry") (name "python-spherical-geometry")
;; XXX: Can't be updated to the latest see: (version "1.3.1")
;; https://github.com/spacetelescope/spherical_geometry/issues/227
(version "1.2.22")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -2613,7 +2611,7 @@ of axis order, spatial projections, and spectral units that exist in the wild.
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z")))) (base32 "172f81h42jq6mv3gpx497z2nkhkx11w4pzmcqljcicri2zqj1m6g"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -2627,18 +2625,23 @@ of axis order, spatial projections, and spectral units that exist in the wild.
(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 (add-before 'check 'prepare-test-environment
(lambda _ (lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))))) (invoke "python" "setup.py" "build_ext" "--inplace")
(call-with-output-file "pytest.ini"
(lambda (port)
(format port "[pytest]
python_files = test_*.py"))))))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-astropy-header
python-setuptools-scm)) python-setuptools-scm))
(inputs (inputs
(list qd)) (list qd))
(propagated-inputs (propagated-inputs
(list python-astropy (list python-astropy
python-numpy)) python-numpy))
(home-page "https://github.com/spacetelescope/tweakwcs") (home-page "https://github.com/spacetelescope/spherical_geometry")
(synopsis "Python astronimical package for handling spherical polygons") (synopsis "Python astronimical package for handling spherical polygons")
(description (description
"The @code{spherical_geometry} library is a Python package for handling "The @code{spherical_geometry} library is a Python package for handling