aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-04-29 14:35:43 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-04-30 08:14:54 +0100
commitc654cb469f8cdcde3144d4aa0568a5765abdc2c0 (patch)
treeb9378f5ac5ec91ea95808cd2fc168f5660b69309
parenteff2759d5b4a3155f0e85702262fe1408d06b91f (diff)
downloadguix-c654cb469f8cdcde3144d4aa0568a5765abdc2c0.tar.gz
guix-c654cb469f8cdcde3144d4aa0568a5765abdc2c0.zip
gnu: Deprecate python-hdf4.
The project has changed the name and VCS URL <https://github.com/fhs/python-hdf4> redirects to <https://github.com/fhs/pyhdf>, see <https://github.com/fhs/pyhdf/pull/22>. * gnu/packages/python-xyz.scm (python-hdf4): Deprecate variable. (python-pyhdf): New variable. Change-Id: I785804a57fa520109a0ceb89263b181889e18bd1
-rw-r--r--gnu/packages/python-xyz.scm71
1 files changed, 42 insertions, 29 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 23563e57ce..f60314acb3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3795,38 +3795,51 @@ compositions like @code{XOR} and @code{NAND} are emulated on top of them.
Expressions are constructed from parsed strings or directly in Python.")
(license license:bsd-2)))
-(define-public python-hdf4
+(define-public python-pyhdf
(package
- (name "python-hdf4")
- (version "0.9.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri name version))
- (sha256
- (base32
- "00sxppysk3w620g1jdskjzkybvpf8dkpzjfj3wlw5khpzw1g0hq5"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- (add-before 'check 'build-extensions
- (lambda _
- ;; Extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (propagated-inputs (list python-numpy))
+ (name "python-pyhdf")
+ (version "0.11.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyhdf" version))
+ (sha256
+ (base32 "0nlcz7p3mcqa0s161iqnnfgwgx0np8rhz8p924g5hlcn1bfy6vcz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "--pyargs" "pyhdf")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'check 'run-example-tests
+ (lambda _
+ (invoke "python" "examples/runall.py"))))))
+ (native-inputs
+ (list python-numpy
+ python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(inputs
- (list hdf4 libjpeg-turbo zlib))
- (home-page "https://github.com/fhs/python-hdf4")
- (synopsis "Python interface to the NCSA HDF4 library")
- (description
- "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
+ (list hdf4
+ libjpeg-turbo
+ zlib))
+ (propagated-inputs
+ (list python-numpy))
+ (home-page "https://github.com/fhs/pyhdf")
+ (synopsis "Python interface to the NCSA HDF4 library")
+ (description
+ "PYHDF4 is a python wrapper around the NCSA HDF version 4 library,
which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
-NetCDF files can also be read and modified. Python-HDF4 is a fork of
-@url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
- (license license:expat)))
+NetCDF files can also be read and modified. It is a successor of Python-HDF4
+which is a fork of @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
+ (license license:expat)))
+
+;; Version 0.9.x was called python-hdf4 in PyPI because at that time upstream
+;; didn't have access to the pyhdf package in PyPI. For version 0.10.0 and
+;; onward, please install pyhdf instead of python-hdf4.
+(define-public python-hdf4
+ (deprecated-package "python-hdf4" python-pyhdf))
(define-public python-h5netcdf
(package