From patchwork Sun Mar 17 17:08:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 61917 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 778CD27BBEA; Sun, 17 Mar 2024 17:10:54 +0000 (GMT) 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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 956EE27BBEC for ; Sun, 17 Mar 2024 17:10:52 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlu1p-0000Yq-2E; Sun, 17 Mar 2024 13:10:33 -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 1rlu1j-0000Kf-1I for guix-patches@gnu.org; Sun, 17 Mar 2024 13:10:28 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlu1i-0001Lr-OZ for guix-patches@gnu.org; Sun, 17 Mar 2024 13:10:26 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlu2K-0005i1-BT for guix-patches@gnu.org; Sun, 17 Mar 2024 13:11:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60238] [PATCH v3 7/7] gnu: Add fava. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Mar 2024 17:11:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60238@debbugs.gnu.org Cc: Sharlatan Hellseher , dan Received: via spool by 60238-submit@debbugs.gnu.org id=B60238.171069541621830 (code B ref 60238); Sun, 17 Mar 2024 17:11:04 +0000 Received: (at 60238) by debbugs.gnu.org; 17 Mar 2024 17:10:16 +0000 Received: from localhost ([127.0.0.1]:58857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1X-0005fy-UP for submit@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:16 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:51273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1P-0005ea-AT for 60238@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:08 -0400 Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-33e17342ea7so1759300f8f.2 for <60238@debbugs.gnu.org>; Sun, 17 Mar 2024 10:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710695304; x=1711300104; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=olhHVh6JpsoF+1TsRL65+yAJOwHzeh6BRTRDmPjWWws=; b=LEIej266Fj75Z34zRHYpGc5+aGKnpOrAPPZC02u5k9RMilu0MFaLFYZFFffvFS29G5 2iDyGNREehIpUC5zMh7E1H5eR0IBR+Md9j6Of4baCOvO0Oso0rSngCGQc+siBhmrcvx4 Q/VBL8th8yi4RsOVOASneAmj1HCMvm52Y5ZPSKW0RtUmCKsoWbK98C6kbPLjLorkX5y7 QIr30It/YCA4vDfaG5LzgAo2l+oCZj/17yjbn7z8sXJqOHwsUXfsN9FmymoEiRyLIcUi iD+4IiYCVw342tUDPEqpOgYdXZxZs9mX5p4TYvnPXgtg131hkoB0iJG7R8fbIVBlluND Araw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710695304; x=1711300104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=olhHVh6JpsoF+1TsRL65+yAJOwHzeh6BRTRDmPjWWws=; b=voGECPnbMWknPcL6U3Pvp2cvhaHC5SuSRBIRIsuD4BKoQGZWc83JtDZ5qXEGDogolg v8NOC89w1Y2sBpgS+CNMMPsbl8FrBrbE/MW8IlLMcxT/0urssnhZ0GAcuB/8UVCJRudc wmr3AS2FU7n6pwQDt33jJ3umKNnz7kMMcVdH/lpU25VDQndYTqLJOntyjNOIas13Djry sapv8MqLMzBoK0PoDSnwwIcX44RNaqvE1qam07jPIoUJ1TUlRAu6DpgcA1pAFkad8NhC mpN1AjKfiR4vsdiPy7tyhMfhQZ2wXa3w6tyXwsawETf8KikclQkB64CFRlNBm5u0Imfv 4dMw== X-Gm-Message-State: AOJu0YyQESlc8FvEKhBgGZqSYhweD73blGvC1G2lhivXmzmszmfEvEd5 SyxbWPzQdV209gXIv7s8j61cxEvbRmzm6i1Ydd1lJYuKVXn+KV1QTxvIGVuTsn4= X-Google-Smtp-Source: AGHT+IEPgwFK6RtkLM/mLuGu0GcRZYtIGlE77Y5diFc4zW7wmarW+A2Lh53qmPU1fU0EBol3vL4WrQ== X-Received: by 2002:adf:e9c7:0:b0:33e:7056:35b6 with SMTP id l7-20020adfe9c7000000b0033e705635b6mr6399293wrn.25.1710695304060; Sun, 17 Mar 2024 10:08:24 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id p10-20020a5d638a000000b0033e206a0a7asm7817968wru.26.2024.03.17.10.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 10:08:23 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 17 Mar 2024 17:08:14 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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 From: dan * gnu/packages/finance.scm (fava): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/finance.scm | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index c248f614ab..e2d4b95a5e 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Philip McGrath ;;; Copyright © 2022 Collin J. Doering +;;; Copyright © 2023 dan ;;; Copyright © 2022 Justin Veilleux ;;; Copyright © 2023 Frank Pursel ;;; Copyright © 2023 Skylar Hill @@ -2026,6 +2027,55 @@ (define-public beancount generate a variety of reports from them, and provides a web interface.") (license license:gpl2))) +(define-public fava + (package + (name "fava") + ;; XXX: Newer version requires Flask > 2.2, which is not available in Guix + ;; yet. + (version "1.24.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fava" version)) + (sha256 + (base32 "1iwha9vx223iiyjqbixpz1lp8q766ikhi7xcap3pscjhldxlym4j")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "setup.cfg" + ((">=8,<10") ">8")))) + ;; Tests write to $HOME. + ;; FileNotFoundError: [Errno 2] No such file or directory + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp")))))) + (propagated-inputs + (list beancount + python-babel + python-cheroot + python-click + python-flask + python-flask-babel + python-jinja2 + python-markdown2 + python-ply + python-simplejson + python-werkzeug)) + (native-inputs + (list python-pytest + python-chardet + python-dateutil + python-setuptools-scm)) + (home-page "https://beancount.github.io/fava/") + (synopsis "Web interface for the accounting tool Beancount") + (description "Fava is a web interface for the double-entry bookkeeping +software Beancount with a focus on features and usability.") + (license license:expat))) + (define-public emacs-beancount ;; Note that upstream has not made any release since this project moved ;; into its own repository (it was originally part of beancount itself)