~ruther/guix-local

4de70c1a77c0a8c7e588319916ff256d9717e860 — Ricardo Wurmus 1 year, 1 month ago 235ce64
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
1 files changed, 13 insertions(+), 14 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +13 -14
@@ 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