GNU bug report logs - #64134
[PATCH 00/17] Add some Python financial libraries.

Previous Next

Package: guix-patches;

Reported by: Vinicius Monego <monego <at> posteo.net>

Date: Sat, 17 Jun 2023 15:18:02 UTC

Severity: normal

Tags: patch

Full log


Message #23 received at 64134 <at> debbugs.gnu.org (full text, mbox):

From: Vinicius Monego <monego <at> posteo.net>
To: 64134 <at> debbugs.gnu.org
Cc: Vinicius Monego <monego <at> posteo.net>
Subject: [PATCH 06/17] gnu: Add python-bt.
Date: Sat, 17 Jun 2023 15:18:29 +0000
* gnu/packages/finance.scm (python-bt): New variable.
---
 gnu/packages/finance.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 94f7b2111f..23071828ff 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1130,6 +1130,45 @@ (define-public python-ffn
 data transformations.")
     (license license:expat)))
 
+(define-public python-bt
+  (package
+    (name "python-bt")
+    (version "0.2.9")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference ;; no tests in PyPI
+                    (url "https://github.com/pmorissette/bt")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0m5gh3s79pbg4f0si0ilxg4zrcm7xrb5wj8j205c6hpa88ybjrm7"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-ffn python-pyprind))
+    (native-inputs (list python-black
+                         python-codecov
+                         python-coverage
+                         python-cython
+                         python-ffn
+                         python-flake8
+                         python-future
+                         python-matplotlib
+                         python-mock
+                         python-nose
+                         python-numpy
+                         python-pandas
+                         python-pyprind))
+    (home-page "https://github.com/pmorissette/bt")
+    (synopsis "Backtesting framework for Python")
+    (description
+     "@code{bt} is a flexible backtesting framework for Python used to test
+quantitative trading strategies.  Backtesting is the process of testing a
+strategy over a given data set.  This framework allows you to easily create
+strategies that mix and match different Algos.  It aims to foster the
+ creation of easily testable, re-usable and flexible blocks of strategy
+ logic to facilitate the rapid development of complex trading strategies.")
+    (license license:expat)))
+
 (define-public python-u2flib-host
   ;; The package is obsolete and superseded by python-fido2, but
   ;; needed for python-ledgerblue <at> 0.1.44.
-- 
2.34.1





This bug report was last modified 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.