summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-12 16:06:48 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:18:46 +0100
commit3f3aaa00099764f6b76d982de22f1fa8b0a80996 (patch)
tree8ce5eb20f6658cef17d9e73709b97b21691adf95 /gnu/packages
parent3ff9ea72f41c64ac077601991a1c5037efe110f1 (diff)
gnu: python-fits-schema: Update to 0.5.6-0.ccffe04.
* gnu/packages/astronomy.scm (python-fits-schema): Update to ccffe04a8a47f2bd0f69014caaf73d9679b89a87 commit. [source]: Switch to git-fetch providing compatibility with NumPy 2. [arguments] <phases>: Remove 'fix-setup.cfg; add 'set-version. [native-inputs]: Add python-setuptools-scm. Change-Id: Ib826726400fef943c69e08a2528269495e1cb481 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/astronomy.scm28
1 files changed, 18 insertions, 10 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d7a1d4c3228..fad044dc8c6 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4769,27 +4769,35 @@ exitinction laws found in the literature.")
(define-public python-fits-schema
(package
(name "python-fits-schema")
- (version "0.5.6")
+ ;; 0.5.6 was released in 2022, there are NumPy 2 comparability changes
+ ;; which are available on master HEAD, use the latest commit for now.
+ (properties '((commit . "ccffe04a8a47f2bd0f69014caaf73d9679b89a87")
+ (revision . "0")))
+ (version (git-version "0.5.6"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "fits_schema" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/VODF/fits_schema")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1y6an115k7x31hbb67bfp513k802c1nfz2rxy418qkf832blnqfd"))))
+ (base32 "0lj8vb3b2s7m56bs4am6856w8vdlyi4p86gj7hlkncfngsgx1f8v"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- ;; TODO: It's removed on Git's master.
- ;; ModuleNotFoundError: No module named 'eschool21_demo'
- (add-after 'unpack 'fix-setup.cfg
+ (add-before 'build 'set-env-version
(lambda _
- (substitute* "setup.cfg"
- (("fibonacci = eschool21_demo.__main__:main") "")))))))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(version-major+minor+point version)))))))
(native-inputs
(list python-pytest
- python-setuptools))
+ python-setuptools
+ python-setuptools-scm))
(propagated-inputs
(list python-astropy
python-numpy))