diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-04 15:43:17 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:21:30 +0100 |
| commit | 7563764ca7eef2c1c5cef7dcf20d1a43e3045181 (patch) | |
| tree | edda50cbc47dac69d32fac454a8b163b44a78f69 /gnu | |
| parent | e6bfded1090aef1ef0f93f5f3fe160b695e4d291 (diff) | |
gnu: Add python-statannotations.
* gnu/packages/statistics.scm (python-statannotations): New variable.
Change-Id: Ib8a51d7b63c9be9af2addf193c8241569c793569
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/statistics.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index cd4efb4523..a6bef0b209 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -1454,6 +1454,56 @@ uncertainties and are backed by strong theoretical guarantees thanks to conformal prediction methods intervals.") (license license:bsd-3))) +(define-public python-statannotations + (package + (name "python-statannotations") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/trevismd/statannotations") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0433w2vv2j1kwbkgbfiv5xq1s2fyxvwz520b7jwa0a8s9ndhjpwj")))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 173 passed, 5 deselected, 364 warnings + #:test-flags + ;; Network access is required for these tests: + #~(list #$@(map (lambda (test) + (string-append "--deselect=tests/" + "test_native_scale.py::" test)) + (list "TestNativeScalePlotter::test_gap" + "TestNativeScalePlotter::test_native_scale" + "TestNativeScalePlotter::test_no_native_scale")) + #$@(map (lambda (test) + (string-append "--deselect=tests/" + "test_positions.py::" test)) + (list "TestPositionPlotter::test_seaborn_all_plots" + "TestPositionPlotter::test_seaborn_violinplot"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'pre-check + (lambda _ (setenv "HOME" "/tmp")))))) + (native-inputs + (list python-pytest + python-setuptools)) + (propagated-inputs + (list python-matplotlib + python-numpy + python-pandas + python-scipy + python-seaborn)) + (home-page "https://github.com/trevismd/statannotations") + (synopsis "Add statistical significance annotations on seaborn plots") + (description + "This package implements a functionality to optionally compute statistical +test and add statistical annotations on plots generated with seaborn.") + (license license:expat))) + (define-public python-statsmodels (package (name "python-statsmodels") |
