From patchwork Sat May 20 23:12:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 50185 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 84F7D27BBEC; Sun, 21 May 2023 00:14:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D2DEC27BBE2 for ; Sun, 21 May 2023 00:14:35 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Vm1-0007ia-5d; Sat, 20 May 2023 19:14:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0Vlz-0007hJ-8j for guix-patches@gnu.org; Sat, 20 May 2023 19:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0Vlz-0002Y7-10 for guix-patches@gnu.org; Sat, 20 May 2023 19:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0Vly-0000YY-Sj for guix-patches@gnu.org; Sat, 20 May 2023 19:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63619] [PATCH 2/9] gnu: Add python-altair. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 23:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63619@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 63619-submit@debbugs.gnu.org id=B63619.16846243971999 (code B ref 63619); Sat, 20 May 2023 23:14:02 +0000 Received: (at 63619) by debbugs.gnu.org; 20 May 2023 23:13:17 +0000 Received: from localhost ([127.0.0.1]:59542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0VlF-0000WB-0J for submit@debbugs.gnu.org; Sat, 20 May 2023 19:13:17 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0VlC-0000Vk-Fg for 63619@debbugs.gnu.org; Sat, 20 May 2023 19:13:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B444C240101 for <63619@debbugs.gnu.org>; Sun, 21 May 2023 01:13:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684624388; bh=KBVyxLPPxy4Bl4lOAFDfD+xbGiIloqs00m3Z4ml6j6U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=KrrhCqgTAausr0XO2rGjmSX0OVdvGuOOBa2NgOT++TKN9whKi6GXMxUSj+bFLPA2E 9W4sLRt9RdXDFfV4okcRUpyxmyxc92VT4Npx8O2anM/f8gfzk1LQlXVlCN7MPxmm3n EiRCEU8lCpP9AFn+QXM53eOgL7hZvhJLBuAjHD6IVyevCADofGLYs3LKqv8rBdQfMT GBPyT3QrNFMx3+kMjfYP4D1CpUtns2GvkkImjRxD0gtkIn6IUmlJb6qyePaPVhcSxY bZMhLiGn1wUczqDbDbpB4mg5Jf9HttiAlYnqDNy9ttZxJ7ku1T3vZ3qP+u++/CiJM6 MRsq1KkDnIbRw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QNzyq4P2bz9rxL; Sun, 21 May 2023 01:13:07 +0200 (CEST) From: Vinicius Monego Date: Sat, 20 May 2023 23:12:34 +0000 Message-Id: <20230520231241.962799-2-monego@posteo.net> In-Reply-To: <20230520231241.962799-1-monego@posteo.net> References: <20230520231241.962799-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/statistics.scm (python-altair): New variable. --- gnu/packages/statistics.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index d42c6baed6..574790731e 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -85,6 +85,7 @@ (define-module (gnu packages statistics) #: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) @@ -2082,6 +2083,44 @@ (define-public python-vega-datasets and Vega-Lite examples.") (license license:expat))) +(define-public python-altair + (package + (name "python-altair") + (version "5.0.0") + (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 + "11j7v2s25xwz3qdjbbps3ma2dd68cr87vxn22x9fyfzgbs9pc7mx")))) + (build-system pyproject-build-system) + (arguments + ;; test_render_examples_to_chart opens an external connection. + ;; test_save_html introduces a circular dependency on altair-viewer. + (list #:test-flags #~(list "-k" (string-append + "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")