gnu: python-hdf4: Update to 0.9.2.

* gnu/packages/python-xyz.scm (python-hdf4): Update to 0.9.2.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase; add phase 'build-extensions.
[native-inputs]: Remove python-nose; add python-pytest, python-setuptools, and
python-wheel.
[inputs]: Drop labels.

Change-Id: I96312f9509fae89a4c21a58b593ccb87952e0332
This commit is contained in:
Ricardo Wurmus 2025-01-16 12:10:24 +01:00
parent 235ce649a9
commit 4de70c1a77
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3273,28 +3273,27 @@ Expressions are constructed from parsed strings or directly in Python.")
(define-public python-hdf4
(package
(name "python-hdf4")
(version "0.9")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32
"1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
(build-system python-build-system)
(native-inputs `(("nose" ,python-nose)))
(propagated-inputs `(("numpy" ,python-numpy)))
(inputs
`(("hdf4" ,hdf4)
("libjpeg" ,libjpeg-turbo)
("zlib" ,zlib)))
"00sxppysk3w620g1jdskjzkybvpf8dkpzjfj3wlw5khpzw1g0hq5"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(list
#:phases
'(modify-phases %standard-phases
(add-before 'check 'build-extensions
(lambda _
(invoke "./runexamples.sh")
(invoke "nosetests" "-v"))))))
;; 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))
(inputs
(list hdf4 libjpeg-turbo zlib))
(home-page "https://github.com/fhs/python-hdf4")
(synopsis "Python interface to the NCSA HDF4 library")
(description