gnu: python-dask: Propagate python-dask-expr.

* gnu/packages/python-xyz.scm (python-dask/bootstrap): New variable.
(python-dask)[propagated-inputs]: Add python-dask-expr.
* gnu/packages/python-science.scm (python-dask-expr)[propagated-inputs]:
Remove python-dask.
[native-inputs]: Add python-dask/bootstrap.

Change-Id: I1196641425421c7dde94c6fea8d573e78db9c402
This commit is contained in:
Ricardo Wurmus 2024-05-02 15:33:59 +02:00
parent a237ba5378
commit 78d5fb1720
No known key found for this signature in database
GPG key ID: 197A5888235FACAC
2 changed files with 17 additions and 2 deletions

View file

@ -2129,9 +2129,12 @@ (define-public python-dask-expr
(substitute* "setup.py" (substitute* "setup.py"
(("versioneer.get_version\\(\\)") (("versioneer.get_version\\(\\)")
(string-append "\"" #$version "\"")))))))) (string-append "\"" #$version "\""))))))))
(propagated-inputs (list python-dask python-pandas python-pyarrow)) (propagated-inputs (list python-pandas python-pyarrow))
(native-inputs (native-inputs
(list python-pytest ;; We use python-dask/bootstrap so that python-dask can propagate this
;; package without creating a mutually recursive dependency.
(list python-dask/bootstrap
python-pytest
python-versioneer)) python-versioneer))
(home-page "https://github.com/dask/dask-expr") (home-page "https://github.com/dask/dask-expr")
(synopsis "Dask DataFrames with query optimization") (synopsis "Dask DataFrames with query optimization")

View file

@ -28106,6 +28106,7 @@ (define-public python-dask
(propagated-inputs (propagated-inputs
(list python-click ;needed at runtime (list python-click ;needed at runtime
python-cloudpickle python-cloudpickle
python-dask-expr
python-fsspec python-fsspec
python-importlib-metadata ;needed at runtime for dask/_compatibility.py python-importlib-metadata ;needed at runtime for dask/_compatibility.py
python-numpy python-numpy
@ -28132,6 +28133,17 @@ (define-public python-dask
run on top of the dynamic task schedulers.") run on top of the dynamic task schedulers.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-dask/bootstrap
(package
(inherit python-dask)
(properties '((hidden? . #true)))
(arguments
(substitute-keyword-arguments (package-arguments python-dask)
((#:tests? _ #t) #f)))
(propagated-inputs
(modify-inputs (package-propagated-inputs python-dask)
(delete "python-dask-expr")))))
(define-public python-dask-image (define-public python-dask-image
(package (package
(name "python-dask-image") (name "python-dask-image")