From patchwork Fri Jun 9 03:49: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: 50785 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 89DD227BBE2; Fri, 9 Jun 2023 04:51:59 +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=unavailable 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 A2A5A173E2 for ; Fri, 9 Jun 2023 04:51:55 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7T9V-0001HF-Ck; Thu, 08 Jun 2023 23:51: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 1q7T9T-0001Fb-3U for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51: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 1q7T9S-0006y3-R8 for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7T9S-0008He-Bv for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63619] [PATCH v2 2/9] gnu: Add python-altair. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 03:51: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.168628262231703 (code B ref 63619); Fri, 09 Jun 2023 03:51:02 +0000 Received: (at 63619) by debbugs.gnu.org; 9 Jun 2023 03:50:22 +0000 Received: from localhost ([127.0.0.1]:58004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T8o-0008FH-D4 for submit@debbugs.gnu.org; Thu, 08 Jun 2023 23:50:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T8m-0008Ev-D9 for 63619@debbugs.gnu.org; Thu, 08 Jun 2023 23:50:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DC73F240101 for <63619@debbugs.gnu.org>; Fri, 9 Jun 2023 05:50:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686282614; bh=8s9uKm4HizTJq5exlMUJnjiVNxbQK20HkAUyoiYPWkY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=PEwugOaIiN5ukSkEBFpAwH7ZeorxYXGYaBOCYGDwiFUzMspTamU36Cmda/YkzjEC5 mhyNKP2mdVaY90/7jK5RvtXf9fK0IPQvJIyQjxkHckmPQ/YGhke3Xji520XtctykkO H+z52KS+fvWCojzG6wFw3CSL+WCI9d5JwziC6VhAtO2W4960FK/o/QtXPwJYsdolmL d734LWEKYtQuMq9ZJKS7NDFpauFcUaop4hUhNL++lA1amoIq+lKh/+Xp/HVgVM/RmX KymuYYrjhfn0qHzdMkxeqhwIxGmJqKmOyBLp3gdtUyS6vQHI7n2beQ7CeSpMbjC6sX wSBySYqxip8uw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QcnCn48gMz6twj; Fri, 9 Jun 2023 05:50:13 +0200 (CEST) From: Vinicius Monego Date: Fri, 9 Jun 2023 03:49:34 +0000 Message-Id: <20230609034941.1807600-2-monego@posteo.net> In-Reply-To: <20230609034941.1807600-1-monego@posteo.net> References: <20230609034941.1807600-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 | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 7f6dae1d67..4952e16384 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,45 @@ (define-public python-vega-datasets 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")