diff options
author | Sergey Trofimov <sarg@sarg.org.ru> | 2025-05-05 09:01:04 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-26 21:41:47 +0100 |
commit | ee4ebdf86a32d4ce41fe7e15822fd4874833f502 (patch) | |
tree | 6385c601b3491ceaf76c532ed6fdca0bc44529a5 | |
parent | 1bea42cd567d3cb798de7659355c7e949f3937c0 (diff) |
gnu: Add beanquery.
* gnu/packages/finance.scm (beanquery): New variable.
Change-Id: Ic733750b5b71740992a145b1ee05fa67dbe1f837
Reviwed-by: Ian Eure <ian@retrospec.tv>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r-- | gnu/packages/finance.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 055431043b..601676d8ae 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -2094,6 +2094,35 @@ 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 beanquery + (package + (name "beanquery") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "beanquery" version)) + (sha256 + (base32 "0b6dhj9lcf3b347rsjb0k25qgsmqf9jnd0yizv3kad00745bawid")) + (modules '((guix build utils))) + (snippet #~(substitute* "pyproject.toml" + (("tatsu-lts") + "tatsu"))))) + (build-system pyproject-build-system) + (propagated-inputs + (list beancount-3 + python-click + python-dateutil + python-tatsu)) + (native-inputs (list python-setuptools python-wheel python-pytest)) + (home-page "https://github.com/beancount/beanquery") + (synopsis "Interactive interpreter for the Beancount Query Language") + (description "A specialized SQL-like query client for Beancount ledger +files. It can run interactively or in batch mode. By providing a specialized +query engine that takes advantage of the structure of double-entry transactions, +it can easily generate custom reports specific to accounting purposes.") + (license license:gpl2))) + (define-public fava (package (name "fava") |