From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QPUKKUzPjWTiPAAASxT56A (envelope-from ) for ; Sat, 17 Jun 2023 17:20:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8EMNKEzPjWQbCQAAG6o9tA (envelope-from ) for ; Sat, 17 Jun 2023 17:20:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FFFD16DB3 for ; Sat, 17 Jun 2023 17:20:44 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687015244; a=rsa-sha256; cv=none; b=ubh5db3A3Ty4CeaN1dKN5xLCxoazMBKHGqHDDxwikAE8KhiuL+UymAHipXMjaqDLcCoeNw s20u62MXmpDCjje+TpseU6hOmvvYXA/mMfv4SuEN1G3dY71GrDkvG2jyb57fQvu2iuuQgd P0K290lYexnygOm3VCjmZ+wr+pg1YD67j7H358WuyXkuwC0eKld0XOGvdcg0v4cc2e9kcf 36tipbQ/ad39/UBy8MHGXi88sJ+pZ6AkjgETpT5dHtJnamT+FU37tsjtAckhlnNgQbyXum IFmSvRwzOLNucCd7HhWW3vfZ6JA2liLsMkZFwr5npKvFtlRVf9ulqfHZMsJULA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="CM09/ve6"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687015244; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T7kAr1JhxldomdNBzYeeg5Igbf9xHi195uwfDPXpRKc=; b=IP7dhodDa1Jk/OuLo58HBaP0K4t02rqkvfeGyh3pY2UeYm2JhQYXQf59Qa/uvrLBvIO7iO 98k0lBqROt5Xx8yxq33hv/Ral/mp6pwb3kH4dX9EW2l2IKjzB6O0nDLdxMCh0D4gbNEvu8 Fkze9T07YnJo4A2NG3JDHYN+s5faFQAhtRg/ux2azH3/qUFpJb8Bfk5XQiK7N6oEEy82/x MOSkiXvY6AWewsLiT6x/0YvNxCzsdkTmPVfZ73RF2zTfdyaY0ToezWWr5ZGEXNrgRdWG0Z Duf/x8M3g+RgZdBmi73WJtaccIyzvlGyt6Zfb5D+OHVBWa2SNLz6MZ+96Ky3JQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="CM09/ve6"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.43 X-Spam-Score: -0.43 X-Migadu-Queue-Id: 6FFFD16DB3 X-TUID: 519E0LABrnlZ * 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. -- 2.34.1