From 3f3aaa00099764f6b76d982de22f1fa8b0a80996 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 12 Dec 2025 16:06:48 +0000 Subject: [PATCH] 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] : Remove 'fix-setup.cfg; add 'set-version. [native-inputs]: Add python-setuptools-scm. Change-Id: Ib826726400fef943c69e08a2528269495e1cb481 Signed-off-by: Rutherther --- gnu/packages/astronomy.scm | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index d7a1d4c32280684b2aedca38fdf0e42c4b61c320..fad044dc8c6a305884406cb0c8f67bf90275e76f 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))