From 4de70c1a77c0a8c7e588319916ff256d9717e860 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 16 Jan 2025 12:10:24 +0100 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8274a067987ede388500fc1e12191ac9f43692fe..c07d934d481f184455c717efe77cbd413e3e0f24 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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