From patchwork Sat May 20 23:12:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 50188 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 1C58F27BBE9; Sun, 21 May 2023 00:14:44 +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 B900227BBE2 for ; Sun, 21 May 2023 00:14:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Vm2-0007iu-2I; Sat, 20 May 2023 19:14:06 -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 1q0Vm0-0007iB-Ra for guix-patches@gnu.org; Sat, 20 May 2023 19:14:04 -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 1q0Vm0-0002YX-IW for guix-patches@gnu.org; Sat, 20 May 2023 19:14:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0Vm0-0000Z2-Dn for guix-patches@gnu.org; Sat, 20 May 2023 19:14:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63619] [PATCH 6/9] gnu: Add python-arviz. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 23:14:04 +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.16846244352092 (code B ref 63619); Sat, 20 May 2023 23:14:04 +0000 Received: (at 63619) by debbugs.gnu.org; 20 May 2023 23:13:55 +0000 Received: from localhost ([127.0.0.1]:59558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Vlq-0000Xg-KS for submit@debbugs.gnu.org; Sat, 20 May 2023 19:13:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Vln-0000XJ-D6 for 63619@debbugs.gnu.org; Sat, 20 May 2023 19:13:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DE7B8240027 for <63619@debbugs.gnu.org>; Sun, 21 May 2023 01:13:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684624425; bh=4SsNvFKwgMt8S0VOD3zDc+FIp+vinj5YEMQ6BRQyxSQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=H1srdgC63w1J88MnX3ywbdfqVkK/yGg9f9wkaC8mPa/YbZtTwGy99F/Pf59q5o6zN rMpxQa2ALipznJPapub1PNe9wSTBRbkofceO1ZzXedmGqKS0jkBLD3qWonYJ6mdOD1 Ooo56q+gxEFI6avjI8FBXqzUrRQalgeKn4dQjznX+rYdTryfSG07GnfAKsyoMEZLj/ klZRQWWf7n+eOviW7frwotsnM3wpDw9YZJM34RIJ3UDFTnvtdGVdF0dRih6H5d3A2h HqTHTbsJSdt0yrR9SHL0LPHfbgiRAUBoj7zjMqHm/uOfcs3XzHNZWb98vUTPNwilzV Yzb91G+DH0QPQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QNzzX67ztz6txl; Sun, 21 May 2023 01:13:44 +0200 (CEST) From: Vinicius Monego Date: Sat, 20 May 2023 23:12:38 +0000 Message-Id: <20230520231241.962799-6-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-arviz): New variable. --- gnu/packages/statistics.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 574790731e..c39cf9c0ac 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -2151,6 +2151,47 @@ (define-public python-hdmedians machine learning, computer vision, and high-dimensional statistics.") (license license:asl2.0))) +(define-public python-arviz + (package + (name "python-arviz") + (version "0.15.1") + (source (origin + (method git-fetch) ; PyPI misses some test files + (uri (git-reference + (url "https://github.com/arviz-devs/arviz") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nqr4v927r9kc50z7rwlk2m8nw3dnnmmwmwcfijzd93gbg53wc4f")))) + (build-system pyproject-build-system) + (arguments + ;; FIXME: matplotlib tests fail because of the "--save" test flag. + (list #:test-flags #~'("--ignore" + "arviz/tests/base_tests/test_plots_matplotlib.py") + #:phases #~(modify-phases %standard-phases + (add-before 'check 'write-permission + (lambda _ + ;; 3 tests require write permission. + (setenv "HOME" "/tmp")))))) + (native-inputs (list python-cloudpickle python-pytest)) + (propagated-inputs (list python-h5netcdf + python-matplotlib + python-numpy + python-packaging + python-pandas + python-scipy + python-typing-extensions + python-xarray + python-xarray-einstats)) + (home-page "https://github.com/arviz-devs/arviz") + (synopsis "Exploratory analysis of Bayesian models") + (description + "ArviZ is a Python package for exploratory analysis of Bayesian models. +It includes functions for posterior analysis, data storage, model checking, +comparison and diagnostics.") + (license license:asl2.0))) + (define-public python-patsy (package (name "python-patsy")