diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2026-02-14 23:48:51 +0900 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-26 06:35:28 +0100 |
| commit | 4d8ed6c63ab170808b1fe9782c98f1f7eef8d53f (patch) | |
| tree | 69ae6026ba84b9d3837390cdad11d24b1b86983d /gnu | |
| parent | d1613d6383c8148d8d455e78d518804d932c553a (diff) | |
gnu: Add python-tdigest.
* gnu/packages/digest.scm (python-tdigest): New variable.
Change-Id: I55f719e87dabdf912525c8a2457a8e07661626ac
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/digest.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm index 1ecc21e4d3e..ee5301adaa6 100644 --- a/gnu/packages/digest.scm +++ b/gnu/packages/digest.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2021 Ryan Prior <rprior@protonmail.com> ;;; Copyright © 2021, 2022 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2026 Nguyễn Gia Phong <cnx@loang.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,9 +30,41 @@ #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix utils) + #:use-module (gnu packages check) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-xyz) #:use-module (ice-9 match)) +(define-public python-tdigest + (package + (name "python-tdigest") + (version "0.6.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CamDavidsonPilon/tdigest") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fqpjw27fc1xfx72c2rjbnmi290f4c262rwm0c2fifsxpwyy54w7")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-accumulation-tree python-pyudorandom)) + (native-inputs (list python-numpy + python-pytest + python-pytest-timeout + python-setuptools)) + (home-page "https://github.com/CamDavidsonPilon/tdigest") + (synopsis "Python implementation of the t-digest data structure") + (description + "This Python package implements @url{https://github.com/tdunning/t-digest, +Ted Dunning's t-digest data structure}, which is designed around computing +accurate estimates such as percentiles, quantiles and trimmed means +from streaming or distributed data. Two t-digests can be added, +making the data structure ideal for map-reduce settings, and can be serialized +into much less than 10 kB, instead of storing the entire list of data.") + (license license:expat))) + (define-public wyhash (package (name "wyhash") |
