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"
(("versioneer.get_version\\(\\)")
(string-append "\"" #$version "\""))))))))
(propagated-inputs (list python-dask python-pandas python-pyarrow))
(propagated-inputs (list python-pandas python-pyarrow))
(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))
(home-page "https://github.com/dask/dask-expr")
(synopsis "Dask DataFrames with query optimization")

View file

@ -28106,6 +28106,7 @@ (define-public python-dask
(propagated-inputs
(list python-click ;needed at runtime
python-cloudpickle
python-dask-expr
python-fsspec
python-importlib-metadata ;needed at runtime for dask/_compatibility.py
python-numpy
@ -28132,6 +28133,17 @@ (define-public python-dask
run on top of the dynamic task schedulers.")
(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
(package
(name "python-dask-image")