GNU bug report logs - #78252
[PATCH 0/5] Update beancount to v3

Previous Next

Package: guix-patches;

Reported by: Sergey Trofimov <sarg <at> sarg.org.ru>

Date: Mon, 5 May 2025 07:05:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Full log


View this message in rfc822 format

From: Sergey Trofimov <sarg <at> sarg.org.ru>
To: 78252 <at> debbugs.gnu.org
Cc: Sergey Trofimov <sarg <at> sarg.org.ru>
Subject: [bug#78252] [PATCH 3/5] gnu: beancount: Update to 3.1.0.
Date: Mon,  5 May 2025 09:09:09 +0200
* gnu/packages/finance.scm (beancount-3): New variable.

Change-Id: Id3b0c8c77361cc8475b45e211df60988f27f53bb
---
 gnu/packages/finance.scm | 45 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index f9cc39b720..4650506225 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -79,7 +79,9 @@ (define-module (gnu packages finance)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages base)
+  #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
+  #:use-module (gnu packages build-tools)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
@@ -92,6 +94,7 @@ (define-module (gnu packages finance)
   #:use-module (gnu packages emacs)
   #:use-module (gnu packages emacs-xyz)
   #:use-module (gnu packages dbm)
+  #:use-module (gnu packages flex)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
@@ -118,6 +121,7 @@ (define-module (gnu packages finance)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
+  #:use-module (gnu packages ninja)
   #:use-module (gnu packages pdf)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages popt)
@@ -2041,6 +2045,47 @@ (define-public beancount
 generate a variety of reports from them, and provides a web interface.")
     (license license:gpl2)))
 
+(define-public beancount-3
+  (package
+    (name "beancount")
+    (version "3.1.0")
+    (source
+     (origin
+       (method git-fetch) ;no test data files in PyPI archive
+       (uri (git-reference
+             (url "https://github.com/beancount/beancount")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0pzbhlsvch4n48rqkbff1v1rbk3gm05w0fbd2p97vdmrmlxaa33d"))))
+    (arguments
+     (list
+      #:test-flags
+      #~(list
+         ;; run tests against the built library
+         "--pyargs" "beancount"
+         ;; disable tests supposed to run from the source repo
+         "-k" "not test_export_basic and not test_example_files")))
+    (build-system pyproject-build-system)
+    (native-inputs (list bison
+                         flex
+                         gnupg
+                         meson
+                         ninja
+                         python-meson-python
+                         python-pytest
+                         python-setuptools
+                         python-wheel))
+    (propagated-inputs (list python-bottle python-click python-dateutil
+                             python-regex))
+    (home-page "https://beancount.github.io/")
+    (synopsis "Command-line double-entry accounting tool")
+    (description
+     "Beancount is 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)))
+
 (define-public fava
   (package
     (name "fava")
-- 
2.49.0





This bug report was last modified 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.