From patchwork Sat Jun 17 15:18:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 51005 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 BFA9927BBE9; Sat, 17 Jun 2023 16:20:37 +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 A383A27BBE2 for ; Sat, 17 Jun 2023 16:20:36 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAXii-0004Sz-I0; Sat, 17 Jun 2023 11:20:08 -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 1qAXif-0004R3-A6 for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:05 -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 1qAXie-0007xk-PK for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAXie-0000Ti-L3 for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64134] [PATCH 09/17] gnu: Add python-arch. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Jun 2023 15:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64134 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64134@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 64134-submit@debbugs.gnu.org id=B64134.16870151991771 (code B ref 64134); Sat, 17 Jun 2023 15:20:04 +0000 Received: (at 64134) by debbugs.gnu.org; 17 Jun 2023 15:19:59 +0000 Received: from localhost ([127.0.0.1]:52343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXiZ-0000SV-0H for submit@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:40883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXiX-0000SF-Bm for 64134@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:57 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3226240027 for <64134@debbugs.gnu.org>; Sat, 17 Jun 2023 17:19:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687015191; bh=xa5xyhMj+Bdkt5VUq7JPRGJSTZEvd2MmR9acpxupI5Y=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=PMgArcr5bkUSgFVC4xjY74kHRZPckw+4lrJNbw7K9vNQiOwp0Ko7BmasG3pi//uQL CqjEP2Xt1IHBDHd4NsdrNUp5ANw5Y2rsV16ikPAfIFSKepjZYFu20SPaCKgXtfP+WC ge82CLwK4NfiPo4ttn+XTDe6St5r+cj9KuRmRfZWcJ5f0se114xzD4jHytda0SkSBF NKz2AvPNc1/5exrvSu+/LBkXop0XsRqwmGqDGIE0zO3oYAgZNdtRHecjod2oPnt8Vn +PyHKEUlP0NZTMXPmjEjPs09/cUyjIUcpcJVhz8jMGS9aW9F1Bfc6QAiC3vDhASeEg sZaMv/U2Fyy/Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qk07m6YhWz6twH; Sat, 17 Jun 2023 17:19:48 +0200 (CEST) From: Vinicius Monego Date: Sat, 17 Jun 2023 15:18:32 +0000 Message-Id: <20230617151840.1748096-9-monego@posteo.net> In-Reply-To: <20230617151840.1748096-1-monego@posteo.net> References: <20230617151840.1748096-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/finance.scm (python-arch): New variable. --- gnu/packages/finance.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 23071828ff..9c18e103b7 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -125,6 +125,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages security-token) #:use-module (gnu packages sphinx) #:use-module (gnu packages sqlite) + #:use-module (gnu packages statistics) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) @@ -1016,6 +1017,40 @@ (define-public trezor-gpg-pinentry-tk settings.") (license license:bsd-2))) +(define-public python-arch + (package + (name "python-arch") + (version "6.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "arch" version)) + (sha256 + (base32 + "15mr5rvxwpfhbj5lg85i9gqpvs37rjhifjzhcp512fg2i7yz3663")))) + (build-system pyproject-build-system) + (arguments + ;; Default check phase failed to detect conftest.py in the subdirectory. + (list #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" + "arch/tests" "-vv"))))))) + (native-inputs (list python-cython python-pytest)) + ;; XXX: It is preferrable to compile modules with Cython, however it fails + ;; without a hint. Use Numba for now. TODO: try to build with Cython. + (propagated-inputs (list python-numba + python-numpy + python-pandas + python-scipy + python-statsmodels)) + (home-page "https://github.com/bashtage/arch") + (synopsis "ARCH for Python") + (description + "This package provides Autoregressive Conditional Heteroskedasticity +(ARCH) and other tools for financial econometrics.") + (license license:expat))) + (define-public python-mnemonic (package (name "python-mnemonic")