~ruther/guix-local

19391429b35afd41b347891a18fea103db9f064b — Sharlatan Hellseher 5 months ago 1d55e82
gnu: python-pyhdf: Fix build with gcc-14.

* gnu/packages/python-xyz.scm (python-pyhdf)[arguments] <phases>: Add
'relax-gcc-14-strictness.
[native-inputs]: Remove python-numpy and python-wheel.

Change-Id: I33b09ceaab56857420a4a1af1386a916b5a8e9d9
1 files changed, 12 insertions(+), 8 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +12 -8
@@ 5043,19 5043,23 @@ Expressions are constructed from parsed strings or directly in Python.")
      #:test-flags #~(list "--pyargs" "pyhdf")
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'build 'relax-gcc-14-strictness
            (lambda _
              (setenv "CFLAGS" (string-join
                                (list "-g" "-O2"
                                      "-Wno-error=incompatible-pointer-types")
                                " "))))
          (add-after 'check 'run-example-tests
            (lambda _
              (invoke "python" "examples/runall.py"))))))
    (native-inputs
     (list python-numpy
           python-pytest
     (list python-pytest
           python-setuptools
           python-setuptools-scm
           python-wheel))
   (inputs
    (list hdf4
          libjpeg-turbo
          zlib))
           python-setuptools-scm))
    (inputs
     (list hdf4
           libjpeg-turbo
           zlib))
    (propagated-inputs
     (list python-numpy))
    (home-page "https://github.com/fhs/pyhdf")