[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: Add python-altair.
From: |
guix-commits |
Subject: |
02/09: gnu: Add python-altair. |
Date: |
Sun, 25 Jun 2023 09:53:05 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit fa214b27cfc28e8b935f23ba039e58b66b458c66
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sat May 20 19:43:13 2023 -0300
gnu: Add python-altair.
* gnu/packages/statistics.scm (python-altair): New variable.
---
gnu/packages/statistics.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 449f1aaf66..dbb79af628 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -81,6 +81,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages readline)
@@ -2055,6 +2056,45 @@ and fast file reading.")
and Vega-Lite examples.")
(license license:expat)))
+(define-public python-altair
+ (package
+ (name "python-altair")
+ (version "5.0.1")
+ (source (origin
+ (method git-fetch) ; no tests in PyPI
+ (uri (git-reference
+ (url "https://github.com/altair-viz/altair")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1r74v5n51br9pjhxdzrr62cdgnwkapci93aifnl8dqmfpizfpd7d"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; First two open an external connection.
+ ;; Last introduces a circular dependency on altair-viewer.
+ (list #:test-flags #~(list "-k" (string-append
+ "not test_from_and_to_json_roundtrip"
+ " and not test_render_examples_to_chart"
+ " and not test_save_html"))))
+ (propagated-inputs (list python-jinja2
+ python-jsonschema
+ python-numpy
+ python-pandas
+ python-toolz
+ python-typing-extensions))
+ (native-inputs (list python-black
+ python-hatchling
+ python-ipython
+ python-m2r
+ python-pytest
+ python-vega-datasets))
+ (home-page "https://altair-viz.github.io/")
+ (synopsis "Declarative statistical visualization library for Python")
+ (description
+ "Vega-Altair is a declarative statistical visualization library for
Python.")
+ (license license:expat)))
+
(define-public python-hdmedians
(package
(name "python-hdmedians")
- branch master updated (c210dbe43e -> c55611ff3f), guix-commits, 2023/06/25
- 02/09: gnu: Add python-altair.,
guix-commits <=
- 01/09: gnu: Add python-vega-datasets., guix-commits, 2023/06/25
- 05/09: gnu: Add python-xarray-einstats., guix-commits, 2023/06/25
- 03/09: gnu: Add python-einops., guix-commits, 2023/06/25
- 04/09: gnu: python-xarray: Update to 2023.6.0., guix-commits, 2023/06/25
- 06/09: gnu: Add python-arviz., guix-commits, 2023/06/25
- 08/09: gnu: Add python-pytensor., guix-commits, 2023/06/25
- 09/09: gnu: Add python-pymc., guix-commits, 2023/06/25
- 07/09: gnu: Add python-fastprogress., guix-commits, 2023/06/25