guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 417d9eaacce4d0d13ff3db8c957ae01e37e2af48
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Dec 10 23:33:24 2025 +0000

    gnu: python-esutil: Fix build with gcc-14.
    
    * gnu/packages/astronomy.scm (python-esutil)[arguments] <phases>: Add
    relax-gcc-14-strictness.
    [native-inputs]: Remove python-numpy and python-wheel.
    
    Change-Id: I2e896fdc6250cd19e93a12017836da8c33de0be8
---
 gnu/packages/astronomy.scm | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 63b9c508d3..420474c051 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4636,19 +4636,27 @@ of dates.")
     (version "0.6.16")
     (source
      (origin
-       (method git-fetch) ; no tests in the PyPI tarball
+       (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/esheldon/esutil";)
-             (commit version)))
+              (url "https://github.com/esheldon/esutil";)
+              (commit version)))
        (file-name (git-file-name name version))
        (sha256
         (base32 "05csk5asq3si7gdq8mpfh288z10rs45ylpcrrcjx0009q52l95xq"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #: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")
+                                " ")))))))
     (native-inputs
      (list python-pytest
-           python-numpy
-           python-setuptools
-           python-wheel))
+           python-setuptools))
     (propagated-inputs
      (list python-numpy
            python-scipy))

Reply via email to