From patchwork Sat Jun 17 15:18:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 51009 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 E975027BBE9; Sat, 17 Jun 2023 16:20:52 +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 B0C6B27BBEA for ; Sat, 17 Jun 2023 16:20:51 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAXii-0004Sb-02; 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-0004Qk-Fx 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-0007oh-6X 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-0000TC-21 for guix-patches@gnu.org; Sat, 17 Jun 2023 11:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64134] [PATCH 05/17] gnu: Add python-ffn. 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.16870151711689 (code B ref 64134); Sat, 17 Jun 2023 15:20:03 +0000 Received: (at 64134) by debbugs.gnu.org; 17 Jun 2023 15:19:31 +0000 Received: from localhost ([127.0.0.1]:52327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXi7-0000RB-B2 for submit@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAXi6-0000Qq-FV for 64134@debbugs.gnu.org; Sat, 17 Jun 2023 11:19:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F21FF240103 for <64134@debbugs.gnu.org>; Sat, 17 Jun 2023 17:19:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687015165; bh=97SYLnG1uwXfyNl0Rl0QPBC7eRf+mDu6Eu82dshZh9A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=cYtMaCQFFauQdRQ9Xcnrx0F8IVhSX13qsrB5MXFeQAvmpSZ/HY52w3KhfpgKPWQUp uRUa/YcsF7M+p1ELSxDZiSRPlc67tT02XsdQKbrA4rswkUQhPpDvPavFeYW8c1r0v7 iglrJBvBZfxSrbjjdxiTZJq/AHsLAQrzbaAJ2+u5WsAVQ/aBJnPDlS7D10vSEYfd4i EfGyPlVJDCcNTK7kJzu4NuZ5Lni77ArhneAEs4yBeW4CScZx6eLyB5GVuIVM8JqDHc uDjjf9ceF85aLv2dzXt5/jFgARqwGBeSg6uzBO38PuCy8ogvpXEolvMduXN9Rdv94N gm3VcnKrt1pUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qk07G2R8Gz6tsg; Sat, 17 Jun 2023 17:19:22 +0200 (CEST) From: Vinicius Monego Date: Sat, 17 Jun 2023 15:18:28 +0000 Message-Id: <20230617151840.1748096-5-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-ffn): New variable. --- gnu/packages/finance.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 7eaa5941a0..94f7b2111f 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -103,6 +103,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages libunwind) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages machine-learning) #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) @@ -1094,6 +1095,41 @@ (define-public python-pandas-datareader "This package provides up to date remote data access for Pandas.") (license license:bsd-3))) +(define-public python-ffn + (package + (name "python-ffn") + (version "0.3.7") + (source (origin + ;PyPI is missing files required for testing + (method git-fetch) + (uri (git-reference + (url "https://github.com/pmorissette/ffn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rq6w2hbf8mcc9blrdf6aj7fnrcj0bvza2y4miznv3il9wqnpd6z")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-decorator + python-matplotlib + python-numpy + python-pandas + python-pandas-datareader + python-scikit-learn + python-scipy + python-tabulate + python-yfinance)) + (native-inputs (list python-black python-codecov python-flake8 + python-pytest python-pytest-cov)) + (home-page "https://github.com/pmorissette/ffn") + (synopsis "Financial functions for Python") + (description + "@code{ffn} is a library that contains many useful functions + for those who work in quantitative finance. It provides a vast array of +utilities, from performance measurement and evaluation to graphing and common +data transformations.") + (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.