unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 64134@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#64134] [PATCH 09/17] gnu: Add python-arch.
Date: Sat, 17 Jun 2023 15:18:32 +0000	[thread overview]
Message-ID: <20230617151840.1748096-9-monego@posteo.net> (raw)
In-Reply-To: <20230617151840.1748096-1-monego@posteo.net>

* 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")
-- 
2.34.1





  parent reply	other threads:[~2023-06-17 15:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-17 15:16 [bug#64134] [PATCH 00/17] Add some Python financial libraries Vinicius Monego
2023-06-17 15:18 ` [bug#64134] [PATCH 01/17] gnu: Add python-holidays Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 02/17] gnu: Add python-multitasking Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 03/17] gnu: Add python-yfinance Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 04/17] gnu: Add python-pandas-datareader Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 05/17] gnu: Add python-ffn Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 06/17] gnu: Add python-bt Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 07/17] gnu: Add python-pyhdfe Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 08/17] gnu: Add python-interface-meta Vinicius Monego
2023-06-17 15:18   ` Vinicius Monego [this message]
2023-06-17 15:18   ` [bug#64134] [PATCH 10/17] gnu: Add python-alpha-vantage Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 11/17] gnu: Add python-ascii-magic Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 12/17] gnu: Add python-degiro-connector Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 13/17] gnu: Add python-detecta Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 14/17] gnu: Add python-financedatabase Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 15/17] gnu: Add python-mstarpy Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 16/17] gnu: Add python-pandas-ta Vinicius Monego
2023-06-17 15:18   ` [bug#64134] [PATCH 17/17] gnu: Add python-vectorbt Vinicius Monego

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230617151840.1748096-9-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=64134@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).