gnu: python-vaex-core: Use pyproject-build-system and Pydantic 2.

* gnu/packages/python-science.scm (python-vaex-core)[build-system]: Use
pyproject-build-system.
[arguments]: Remove custom 'check phase; add phase 'patch-for-pydantic.
[propagated-inputs]: Replace python-pydantic with python-pydantic-2; add
python-pydantic-settings.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I0e3d4d30940f55e234a5971431dc1c3fec2abce3
This commit is contained in:
Ricardo Wurmus 2025-02-27 09:19:29 +01:00
parent 3f918321ad
commit 2d5b2060e3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3936,15 +3936,17 @@ documentation for more information.")
(list "vendor/boost" (list "vendor/boost"
"vendor/pcre" "vendor/pcre"
"vendor/pybind11"))))) "vendor/pybind11")))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:tests? #false ;require vaex.server and others, which require vaex-core. (list
#:phases #:tests? #false ;require vaex.server and others, which require vaex-core.
(modify-phases %standard-phases #:phases
(replace 'check '(modify-phases %standard-phases
(lambda* (#:key tests? #:allow-other-keys) (add-after 'unpack 'patch-for-pydantic
(when tests? (lambda _
(invoke "pytest" "-vv" ))))))) (substitute* "vaex/settings.py"
(("from pydantic import BaseModel")
"from pydantic_settings import BaseModel")))))))
(inputs (inputs
(list boost pcre pybind11-2.3)) (list boost pcre pybind11-2.3))
(propagated-inputs (propagated-inputs
@ -3961,14 +3963,15 @@ documentation for more information.")
python-pandas python-pandas
python-progressbar2 python-progressbar2
python-pyarrow python-pyarrow
python-pydantic python-pydantic-2
python-pydantic-settings
python-pyyaml python-pyyaml
python-requests python-requests
python-rich python-rich
python-six python-six
python-tabulate)) python-tabulate))
(native-inputs (native-inputs
(list python-pytest python-cython)) (list python-pytest python-cython python-setuptools python-wheel))
(home-page "https://www.github.com/maartenbreddels/vaex") (home-page "https://www.github.com/maartenbreddels/vaex")
(synopsis "Core of Vaex library for exploring tabular datasets") (synopsis "Core of Vaex library for exploring tabular datasets")
(description "Vaex is a high performance Python library for lazy (description "Vaex is a high performance Python library for lazy