summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-04 21:16:41 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:27 +0200
commitac5a45243ac0a5c107c8ac508ad934c82d9d4a65 (patch)
treed6e66c70c8c22b3c18edffffe4ced2a660816aa9 /gnu/packages/python-science.scm
parent58ca499bff25f07def8467c754362e67326cce08 (diff)
gnu: python-vaex-core: Update to 4.17.1.
* gnu/packages/python-science.scm (python-vaex-core): Update to 4.17.1. * gnu/packages/patches/python-vaex-core-fix-tsl-use.patch: Add patch. * gnu/local.mk: Record patch. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm44
1 files changed, 32 insertions, 12 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 44bf4a6b44e..265cca2e9a9 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -4123,24 +4123,44 @@ documentation for more information.")
(define-public python-vaex-core
(package
(name "python-vaex-core")
- (version "4.17.1")
+ (version "4.18.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "vaex-core" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://www.github.com/maartenbreddels/vaex")
+ (commit (string-append "core-v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1rzx5px3fwi5mh1z8y91brvffk7dkhj287lnmqp8zp6836kkqhya"))
- (modules '((guix build utils)))
+ (base32 "1sp096msbzgjlwi8c1ink2bp4pjff9pvikqz1y1li8d3in4gpgdr"))
+ (patches
+ (search-patches "python-vaex-core-fix-tsl-use.patch"))
+ (modules '((guix build utils)
+ (ice-9 ftw)))
(snippet
- ;; Remove bundled libraries
- '(for-each delete-file-recursively
- (list "vendor/boost"
- "vendor/pcre"
- "vendor/pybind11")))))
+ #~(begin
+ ;; Delete everything except for vaex-core itself:
+ (define (delete-except exception)
+ (lambda (file)
+ (unless (member file `("." ".." ,exception))
+ (delete-file-recursively file))))
+ (for-each (delete-except "packages") (scandir "."))
+ (with-directory-excursion "packages"
+ (for-each (delete-except "vaex-core") (scandir ".")))
+ (for-each (lambda (file)
+ (unless (member file '("." ".."))
+ (rename-file
+ (string-append "packages/vaex-core/" file)
+ file)))
+ (scandir "packages/vaex-core"))
+ (delete-file-recursively "packages")
+ (delete-file-recursively "vendor")))))
(build-system pyproject-build-system)
- (arguments (list #:tests? #false)) ;require vaex.server and others, which require vaex-core.
+ (arguments
+ ;; require vaex.server and others, which require vaex-core.
+ (list #:tests? #false))
(inputs
- (list boost pcre pybind11-2.3))
+ (list boost pcre pybind11 string-view-lite tsl-hopscotch-map))
(propagated-inputs
(list python-aplus
python-blake3