From patchwork Sat Jun 17 15:18:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 51008 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 19A6527BBE2; Sat, 17 Jun 2023 16:20:45 +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=ham 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 6B92827BBE9 for ; Sat, 17 Jun 2023 16:20:44 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAXii-0004Sh-Ab; 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 1qAXid-0004Qt-Qn for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20: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 1qAXid-0007s8-IT for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAXid-0000TK-Ec for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64134] [PATCH 06/17] gnu: Add python-bt. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Jun 2023 15:20:03 +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.16870151811713 (code B ref 64134); Sat, 17 Jun 2023 15:20:03 +0000 Received: (at 64134) by debbugs.gnu.org; 17 Jun 2023 15:19:41 +0000 Received: from localhost ([127.0.0.1]:52331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXiG-0000RX-QW for submit@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXiF-0000RL-JH for 64134@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1A9FA240101 for <64134@debbugs.gnu.org>; Sat, 17 Jun 2023 17:19:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687015174; bh=J2W95a85GuP8uyxtnzOgrSqjLCRRa27jxxs62ewCd9A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=CM09/ve6hvvegJ+uuHDGss4o9dQ0rtTeWkE9pktiiwMyRIsor8oL7GsXoMxvY22rJ vRlzFs3XpeD5lWUxT/cKYl1fn6c8j1Gof4fJX3HIyRu6KutnpfATzqmniUBLxw7JRt F2NA2vDrtTo1VxwPGwHG80gzxM/PPGyltP2M4agaEjN5OkpQGxC+MZGsh0agZj8bV+ hEY9mKrrZ/U/rokbM7LbNIWQ1m9GQoE3yCkkLrsP/6qq+zC5aVCvRMAjMpY805hnDS PsBYRR2PBibSo/xLhICsrMrx/p7i8IfLuJEOkVP3K/oJb5/6iZgXIzctj3UuWK/k+/ PnuOehWlXi+rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qk07S0dQ6z6twt; Sat, 17 Jun 2023 17:19:31 +0200 (CEST) From: Vinicius Monego Date: Sat, 17 Jun 2023 15:18:29 +0000 Message-Id: <20230617151840.1748096-6-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-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@0.1.44.