From patchwork Tue Mar 31 21:03:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christine Lemmer-Webber X-Patchwork-Id: 21020 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 E7ABC27BBE4; Tue, 31 Mar 2020 22:04:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5E79127BBE1 for ; Tue, 31 Mar 2020 22:04:17 +0100 (BST) Received: from localhost ([::1]:44148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJO3U-0006uG-Uo for patchwork@mira.cbaines.net; Tue, 31 Mar 2020 17:04:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35174) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJO3K-0006ts-7Z for guix-patches@gnu.org; Tue, 31 Mar 2020 17:04:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJO3I-0002X4-9Z for guix-patches@gnu.org; Tue, 31 Mar 2020 17:04:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJO3F-0002Uw-UA for guix-patches@gnu.org; Tue, 31 Mar 2020 17:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJO3F-0004Mb-P8 for guix-patches@gnu.org; Tue, 31 Mar 2020 17:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40358] Add beancount Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Mar 2020 21:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40358 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40358@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158568862016695 (code B ref -1); Tue, 31 Mar 2020 21:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2020 21:03:40 +0000 Received: from localhost ([127.0.0.1]:37107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJO2n-0004Kt-Vx for submit@debbugs.gnu.org; Tue, 31 Mar 2020 17:03:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:35091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJO2m-0004Kk-Gq for submit@debbugs.gnu.org; Tue, 31 Mar 2020 17:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34353) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJO2k-0006ny-0K for guix-patches@gnu.org; Tue, 31 Mar 2020 17:03:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJO2h-0001dn-D3 for guix-patches@gnu.org; Tue, 31 Mar 2020 17:03:29 -0400 Received: from dustycloud.org ([50.116.34.160]:44716) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJO2g-0001Zi-FQ for guix-patches@gnu.org; Tue, 31 Mar 2020 17:03:26 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 2ED8F26650 for ; Tue, 31 Mar 2020 17:03:24 -0400 (EDT) User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Lemmer Webber Date: Tue, 31 Mar 2020 17:03:23 -0400 Message-ID: <87tv24ck4k.fsf@dustycloud.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches Yet Another Plaintext Accounting System! From 27274e0075f7215693cc4a51482c68ce00167d37 Mon Sep 17 00:00:00 2001 From: Christopher Lemmer Webber Date: Tue, 31 Mar 2020 16:57:15 -0400 Subject: [PATCH] gnu: Add beancount. * gnu/packages/finance.scm (beancount): New variable. * gnu/packages/patches/beancount-disable-googleapis-fonts.patch: New file. --- gnu/packages/finance.scm | 42 +++++++++++++++++++ .../beancount-disable-googleapis-fonts.patch | 23 ++++++++++ 2 files changed, 65 insertions(+) create mode 100644 gnu/packages/patches/beancount-disable-googleapis-fonts.patch diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 7bf8f4fc6e..53bbbb2f84 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2019 Martin Becze ;;; Copyright © 2019 Sebastian Schott ;;; Copyright © 2020 Kei Kebreau +;;; Copyright © 2020 Christopher Lemmer Webber ;;; ;;; This file is part of GNU Guix. ;;; @@ -1398,3 +1399,44 @@ entity management.") electronic cash system. This package provides a command line client and a Qt GUI.") (license license:expat))) + +(define-public beancount + (package + (name "beancount") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "beancount" version)) + (sha256 + (base32 + "0pcfl2rx2ng06i4f9izdpnlnb1k0rdzsckbzzn4cn4ixfzyssm0m")) + (patches (search-patches "beancount-disable-googleapis-fonts.patch")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Says test is missing, not sure why + #:phases + (modify-phases %standard-phases + ;; Not importing the googleapis package for now + (add-after 'unpack 'ignore-googleapis + (lambda _ + (substitute* "setup.py" + (("'google-api-python-client',") "")) + #t))))) + (propagated-inputs + `(("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-bottle" ,python-bottle) + ("python-chardet" ,python-chardet) + ("python-dateutil" ,python-dateutil) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-ply" ,python-ply) + ("python-pytest" ,python-pytest) + ("python-requests" ,python-requests))) + (home-page "http://furius.ca/beancount") + (synopsis "Command-line Double-Entry Accounting") + (description + "A double-entry bookkeeping computer language that lets you define +financial transaction records in a text file, read them in memory, generate +a variety of reports from them, and provides a web interface.") + (license license:gpl2))) diff --git a/gnu/packages/patches/beancount-disable-googleapis-fonts.patch b/gnu/packages/patches/beancount-disable-googleapis-fonts.patch new file mode 100644 index 0000000000..f3ef574ddc --- /dev/null +++ b/gnu/packages/patches/beancount-disable-googleapis-fonts.patch @@ -0,0 +1,23 @@ +From: Nicolas Dandrimont +Date: Tue, 1 May 2018 04:49:55 +0200 +Subject: Remove fonts.googleapis.com links for the bean-web template + +--- + beancount/web/web.html | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/beancount/web/web.html b/beancount/web/web.html +index 3995ce2..ec9e707 100644 +--- a/beancount/web/web.html ++++ b/beancount/web/web.html +@@ -3,10 +3,6 @@ + + + +- +- +- +- + + {{title}}: {{pagetitle}} + \ No newline at end of file -- 2.25.1