diff options
| author | Vinicius Monego <monego@posteo.net> | 2026-03-29 10:32:53 -0300 |
|---|---|---|
| committer | Vinicius Monego <monego@posteo.net> | 2026-03-30 20:59:38 -0300 |
| commit | 346f9a93ef221f675a4a41f621251d626449b37c (patch) | |
| tree | de4385f5c0f3ec110e25aab72a955012535f04ae /gnu/packages/python-science.scm | |
| parent | 7eb217dc9906a0d7d950d9473f129a3fc4d4f4b3 (diff) | |
gnu: Add python-flox.
* gnu/packages/python-science.scm (python-flox): New variable.
Change-Id: I661c37869a28e65bd707ef09a909278d5412ae9a
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index b45c6e36be6..6627ae4bc9f 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1278,6 +1278,52 @@ dependent on sampled parameters. It assumes one has a Bayesian posterior conditional posterior @code{P(y|x,D,M)} in the @code{(x,y)} plane.") (license license:expat))) +(define-public python-flox + (package + (name "python-flox") + (version "0.11.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xarray-contrib/flox") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jy1kxk9r0az39zmbmf6md55c35ldkk9q6pcfg8jb4chwi4i34iw")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--ignore" "tests/test_asv.py" ; ignore benchmark test + ;; FIXME: Check why test_cohorts failed. + "--ignore" "tests/test_cohorts.py"))) + (propagated-inputs (list python-numpy + python-numpy-groupies + python-packaging + python-pandas + python-scipy + python-toolz)) + (native-inputs (list ;; python-cubed ; TODO: package this + python-dask + python-netcdf4 + python-numbagg + python-pytest + python-pytest-snapshot + python-pytest-xdist + python-setuptools + python-setuptools-scm + python-sparse + python-xarray)) + (home-page "https://github.com/xarray-contrib/flox") + (synopsis "GroupBy operations for @code{dask.array}") + (description "@code{flox} mainly provides strategies for fast GroupBy +reductions with @code{dask.array}. It uses the MapReduce paradigm (or a +\"tree reduction\") to run the GroupBy operation in a parallel-native way +totally avoiding a sort or shuffle operation. @code{flox} can use either +@code{dask} or @code{cubed} as its backend.") + (license license:asl2.0))) + (define-public python-formulaic (package (name "python-formulaic") |
