guix_mirror_bot pushed a commit to branch master
in repository guix.

commit c2f9489f744770f7323f67f5a787f0a12afaeec8
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jul 24 13:56:29 2025 +0200

    gnu: python-pykdtree: Update to 1.4.2.
    
    * gnu/packages/python-xyz.scm (python-pykdtree): Update to 1.4.2.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:tests?>: Disable them and explain why.
    <#:phases>: Remove test files in output.
    [native-inputs]: Replace python-cython by python-cython-3.
    
    Change-Id: If5a7bb27b4c3af9075334360a57ae92f93d4fa35
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a73d10fb00..955cbb0f32 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11631,16 +11631,27 @@ the results.")
 (define-public python-pykdtree
   (package
     (name "python-pykdtree")
-    (version "1.3.9")
+    (version "1.4.2")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pykdtree" version))
        (sha256
-        (base32 "0q4zrqdn8ad6f710yggkhvx4avf2h1hsbg9qa7ghly54v4vhpgd7"))))
-    (build-system python-build-system)
+        (base32 "1xb5xdp32s5ffcbbb6vlrj4i70hdknajvr9yhzx0wld52rx9caxx"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; FIXME: Tests are unable to import properly, but it seems to work in
+      ;; real conditions.
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'fix-site-packages
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+              (with-directory-excursion (site-packages inputs outputs)
+                (for-each delete-file (find-files "." "test*"))))))))
     (native-inputs
-     (list python-cython python-pytest python-setuptools python-wheel))
+     (list python-cython-3 python-pytest python-setuptools python-wheel))
     (propagated-inputs
      (list python-numpy))
     (home-page "https://github.com/storpipfugl/pykdtree";)

Reply via email to