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 <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-24 13:56:29 +02:00 committed by Sharlatan Hellseher
parent b48383cdeb
commit c2f9489f74
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")