GNU bug report logs - #60238
[PATCH 0/7] gnu: Add fava.

Previous Next

Package: guix-patches;

Reported by: dan <i <at> dan.games>

Date: Wed, 21 Dec 2022 13:11:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60238 in the body.
You can then email your comments to 60238 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to dan <i <at> dan.games>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 21 Dec 2022 13:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/7] gnu: Add fava.
Date: Wed, 21 Dec 2022 21:07:51 +0800
This patch series adds fava, a web interface for the double-entry bookkeeping
software Beancount.  Note that the latest version of python-cheroot is 9.0.0,
but the latest release of fava depends on python-cheroot lower than 9.  Thus,
we have to pack 8.6.0 at the moment.

dan (7):
  gnu: Add python-markdown2.
  gnu: Add python-portend.
  gnu: Add python-inflect.
  gnu: Add python-jaraco-text.
  gnu: Add python-pypytools.
  gnu: Add python-cheroot.
  gnu: Add fava.

 gnu/packages/finance.scm    |  35 ++++++++++++
 gnu/packages/python-web.scm |  29 ++++++++++
 gnu/packages/python-xyz.scm | 106 ++++++++++++++++++++++++++++++++++++
 3 files changed, 170 insertions(+)


base-commit: 7833acab0da02335941974608510c02e2d1d8069
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:02 GMT) Full text and rfc822 format available.

Message #8 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 1/7] gnu: Add python-markdown2.
Date: Wed, 21 Dec 2022 21:13:58 +0800
* gnu/packages/python-xyz.scm (python-markdown2): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ee25a2d655..731fc9bbfb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -132,6 +132,7 @@
 ;;; Copyright © 2022 Garek Dyszel <garekdyszel <at> disroot.org>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull <at> hotmail.fr>
 ;;; Copyright © 2022 Nicolas Graves <ngraves <at> ngraves.fr>
+;;; Copyright © 2022 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11540,6 +11541,23 @@ (define-public python-markdown
 markdown_py is also provided to convert Markdown files to HTML.")
     (license license:bsd-3)))
 
+(define-public python-markdown2
+  (package
+    (name "python-markdown2")
+    (version "2.4.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "markdown2" version))
+              (sha256
+               (base32
+                "1c1bqkggr50274gs478cnzm8bljqifdnbg20zla1nn8n3sz4snzn"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/trentm/python-markdown2")
+    (synopsis "A fast and complete Python implementation of Markdown")
+    (description
+     "This package provides a fast and complete Python implementation of Markdown")
+    (license license:expat)))
+
 (define-public python-mdx-include
   (package
     (name "python-mdx-include")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 2/7] gnu: Add python-portend.
Date: Wed, 21 Dec 2022 21:13:59 +0800
* gnu/packages/python-xyz.scm (python-portend): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 731fc9bbfb..6cdf9026b0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8907,6 +8907,24 @@ (define-public python-jaraco-packaging
 releases.")
     (license license:expat)))
 
+(define-public python-portend
+  (package
+    (name "python-portend")
+    (version "3.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "portend" version))
+              (sha256
+               (base32
+                "1r14sb2rh7ncy0m28dqfb70cqxdd0y0idml7vzv27a2y0hb337i3"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-tempora))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/jaraco/portend")
+    (synopsis "TCP port monitoring and discovery")
+    (description "TCP port monitoring and discovery")
+    (license license:expat)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:02 GMT) Full text and rfc822 format available.

Message #14 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 3/7] gnu: Add python-inflect.
Date: Wed, 21 Dec 2022 21:14:00 +0800
* gnu/packages/python-xyz.scm (python-inflect): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6cdf9026b0..f0e2ad4fc4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8925,6 +8925,27 @@ (define-public python-portend
     (description "TCP port monitoring and discovery")
     (license license:expat)))
 
+(define-public python-inflect
+  (package
+    (name "python-inflect")
+    (version "6.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "inflect" version))
+              (sha256
+               (base32
+                "16ihdnwck79db21g2pnqq8acc4n68k8agqgx36bghijh22qbr9pi"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-pydantic))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/jaraco/inflect")
+    (synopsis
+     "Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words")
+    (description
+     "Correctly generate plurals, singular nouns, ordinals, indefinite articles;
+convert numbers to words")
+    (license license:expat)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:03 GMT) Full text and rfc822 format available.

Message #17 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 4/7] gnu: Add python-jaraco-text.
Date: Wed, 21 Dec 2022 21:14:01 +0800
* gnu/packages/python-xyz.scm (python-jaraco-text): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f0e2ad4fc4..3a10d0a892 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8946,6 +8946,34 @@ (define-public python-inflect
 convert numbers to words")
     (license license:expat)))
 
+(define-public python-jaraco-text
+  (package
+    (name "python-jaraco-text")
+    (version "3.11.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "jaraco.text" version))
+              (sha256
+               (base32
+                "0lc3ji0xgd35rbrr2yrp3ykhmgp2xjj1r04w2yl6w5zyjnaminqd"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-autocommand
+                             python-importlib-resources
+                             python-inflect
+                             python-jaraco-context
+                             python-jaraco-functools
+                             python-more-itertools))
+    (native-inputs (list python-pathlib2
+                         python-pytest))
+    (home-page "https://github.com/jaraco/jaraco.text")
+    (synopsis "Module for text manipulation")
+    (description
+     "This package provides handy routines for dealing with text,
+such as wrapping, substitution, trimming, stripping, prefix and suffix
+removal, line continuation, indentation, comment processing, identifier
+processing, values parsing, case insensitive comparison, and more.")
+    (license license:expat)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:03 GMT) Full text and rfc822 format available.

Message #20 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 5/7] gnu: Add python-pypytools.
Date: Wed, 21 Dec 2022 21:14:02 +0800
* gnu/packages/python-xyz.scm (python-pypytools): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3a10d0a892..13627419be 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8974,6 +8974,27 @@ (define-public python-jaraco-text
 processing, values parsing, case insensitive comparison, and more.")
     (license license:expat)))
 
+(define-public python-pypytools
+  (package
+    (name "python-pypytools")
+    (version "0.6.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pypytools" version))
+              (sha256
+               (base32
+                "0ag5xyzagprji0m2pkqsfy8539s003mn41pl6plbmh6iwi9w0h51"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f)) ; no tests
+    (propagated-inputs (list python-py))
+    (home-page "https://github.com/antocuni/pypytools/")
+    (synopsis
+     "A collection of useful tools to use PyPy-specific features, with CPython fallbacks")
+    (description
+     "This package provides a collection of useful tools to use PyPy-specific
+features, with CPython fallbacks")
+    (license license:x11)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:04 GMT) Full text and rfc822 format available.

Message #23 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 6/7] gnu: Add python-cheroot.
Date: Wed, 21 Dec 2022 21:14:03 +0800
* gnu/packages/python-web.scm (python-cheroot): New variable.
---
 gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 18c0b47b67..65b445688c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -58,6 +58,7 @@
 ;;; Copyright © 2022 msimonin <matthieu.simonin <at> inria.fr>
 ;;; Copyright © 2022 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull <at> hotmail.fr>
+;;; Copyright © 2022 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -979,6 +980,34 @@ (define-public python-httplib2
 other HTTP libraries.")
     (license license:expat)))
 
+(define-public python-cheroot
+  (package
+    (name "python-cheroot")
+    (version "8.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "cheroot" version))
+              (sha256
+               (base32
+                "09cfy2iwqs1j8k0mailcdzzjw0lkg4lyc6rddi45b5dcgipdysin"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-importlib-metadata python-jaraco-functools
+                             python-more-itertools))
+    (native-inputs (list python-pytest
+                         python-requests
+                         python-requests-unixsocket
+                         python-requests-toolbelt
+                         python-pypytools
+                         python-trustme
+                         python-pyopenssl
+                         python-jaraco-text
+                         python-portend
+                         python-setuptools-scm-git-archive))
+    (home-page "https://cheroot.cherrypy.dev")
+    (synopsis "Highly-optimized, pure-python HTTP server")
+    (description "Highly-optimized, pure-python HTTP server")
+    (license license:bsd-3)))
+
 (define-public httpie
   (package
     (name "httpie")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Wed, 21 Dec 2022 13:17:04 GMT) Full text and rfc822 format available.

Message #26 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 7/7] gnu: Add fava.
Date: Wed, 21 Dec 2022 21:14:04 +0800
* gnu/packages/finance.scm (fava): New variable.
---
 gnu/packages/finance.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index f9ee7acaa1..fea1bbcb28 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2022 Philip McGrath <philip <at> philipmcgrath.com>
 ;;; Copyright © 2022 Collin J. Doering <collin <at> rekahsoft.ca>
 ;;; Copyright © 2022 Justin Veilleux <terramorpha <at> cock.li>
+;;; Copyright © 2022 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1903,6 +1904,40 @@ (define-public beancount
 generate a variety of reports from them, and provides a web interface.")
     (license license:gpl2)))
 
+(define-public fava
+  (package
+    (name "fava")
+    (version "1.23.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fava" version))
+              (sha256
+               (base32
+                "0dbg29i3pdbv8m2n7qspafn5ja1glxf27xcdz8rdn3myjqh183sk"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list beancount
+                             python-babel
+                             python-beautifulsoup4
+                             python-bottle
+                             python-cheroot
+                             python-click
+                             python-flask
+                             python-flask-babel
+                             python-jinja2
+                             python-magic
+                             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 "Web interface for the accounting tool Beancount.")
+    (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)
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 15 Jan 2023 14:39:02 GMT) Full text and rfc822 format available.

Message #29 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: re: [PATCH 0/7] gnu: Add fava.
Date: Sun, 15 Jan 2023 22:37:32 +0800
ping
-- 
dan




Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 26 Jan 2023 10:04:01 GMT) Full text and rfc822 format available.

Message #32 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: dan <i <at> dan.games>
Cc: 60238 <at> debbugs.gnu.org
Subject: Re: bug#60238: [PATCH 0/7] gnu: Add fava.
Date: Thu, 26 Jan 2023 11:02:59 +0100
Hi dan,

dan <i <at> dan.games> skribis:

> This patch series adds fava, a web interface for the double-entry bookkeeping
> software Beancount.  Note that the latest version of python-cheroot is 9.0.0,
> but the latest release of fava depends on python-cheroot lower than 9.  Thus,
> we have to pack 8.6.0 at the moment.
>
> dan (7):
>   gnu: Add python-markdown2.
>   gnu: Add python-portend.
>   gnu: Add python-inflect.
>   gnu: Add python-jaraco-text.
>   gnu: Add python-pypytools.
>   gnu: Add python-cheroot.
>   gnu: Add fava.

Overall this looks good to me and to
<https://qa.guix.gnu.org/issue/60238>.

However, most synopses and descriptions would need to be improved a bit,
as per
<https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html>.
(I know, it’s not fun, but it’s helpful for users.)

Could you give it a stab and send a v2?

Thanks in advance and sorry for the delay!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 16:58:01 GMT) Full text and rfc822 format available.

Message #35 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Cc: ludo <at> gnu.org
Subject: [PATCH v2 0/7] gnu: Add fava.
Date: Fri,  3 Feb 2023 00:54:21 +0800
The updated patch series is rebased on the master branch, and reworked many of
the package synopsis and description.

dan (7):
  gnu: Add python-markdown2.
  gnu: Add python-portend.
  gnu: Add python-inflect.
  gnu: Add python-jaraco-text.
  gnu: Add python-pypytools.
  gnu: Add python-cheroot.
  gnu: Add fava.

 gnu/packages/finance.scm    |  36 ++++++++++++
 gnu/packages/python-web.scm |  29 ++++++++++
 gnu/packages/python-xyz.scm | 108 ++++++++++++++++++++++++++++++++++++
 3 files changed, 173 insertions(+)


base-commit: f5446f721121c50a6e8fdf1e7285d861dfd180b8
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:02 GMT) Full text and rfc822 format available.

Message #38 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 1/7] gnu: Add python-markdown2.
Date: Fri,  3 Feb 2023 00:58:10 +0800
* gnu/packages/python-xyz.scm (python-markdown2): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b14c4ff0f3..bcf1d29727 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -132,6 +132,7 @@
 ;;; Copyright © 2022 Garek Dyszel <garekdyszel <at> disroot.org>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull <at> hotmail.fr>
 ;;; Copyright © 2022 Nicolas Graves <ngraves <at> ngraves.fr>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11562,6 +11563,23 @@ (define-public python-markdown
 markdown_py is also provided to convert Markdown files to HTML.")
     (license license:bsd-3)))
 
+(define-public python-markdown2
+  (package
+    (name "python-markdown2")
+    (version "2.4.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "markdown2" version))
+              (sha256
+               (base32
+                "1c1bqkggr50274gs478cnzm8bljqifdnbg20zla1nn8n3sz4snzn"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/trentm/python-markdown2")
+    (synopsis "Fast and complete Python implementation of Markdown")
+    (description
+     "This package provides a fast and complete Python implementation of Markdown.")
+    (license license:expat)))
+
 (define-public python-mdx-include
   (package
     (name "python-mdx-include")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:02 GMT) Full text and rfc822 format available.

Message #41 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 2/7] gnu: Add python-portend.
Date: Fri,  3 Feb 2023 00:58:11 +0800
* gnu/packages/python-xyz.scm (python-portend): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bcf1d29727..8e291a1996 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8929,6 +8929,24 @@ (define-public python-jaraco-packaging
 releases.")
     (license license:expat)))
 
+(define-public python-portend
+  (package
+    (name "python-portend")
+    (version "3.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "portend" version))
+              (sha256
+               (base32
+                "1r14sb2rh7ncy0m28dqfb70cqxdd0y0idml7vzv27a2y0hb337i3"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-tempora))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/jaraco/portend")
+    (synopsis "TCP port monitoring and discovery utilities")
+    (description "Use portend to monitor TCP ports for bound or unbound states.")
+    (license license:expat)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:03 GMT) Full text and rfc822 format available.

Message #44 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 3/7] gnu: Add python-inflect.
Date: Fri,  3 Feb 2023 00:58:12 +0800
* gnu/packages/python-xyz.scm (python-inflect): New variable.
---
 gnu/packages/python-xyz.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8e291a1996..c89fa1c412 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8944,7 +8944,30 @@ (define-public python-portend
     (native-inputs (list python-pytest))
     (home-page "https://github.com/jaraco/portend")
     (synopsis "TCP port monitoring and discovery utilities")
-    (description "Use portend to monitor TCP ports for bound or unbound states.")
+    (description
+     "Use portend to monitor TCP ports for bound or unbound states.")
+    (license license:expat)))
+
+(define-public python-inflect
+  (package
+    (name "python-inflect")
+    (version "6.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "inflect" version))
+              (sha256
+               (base32
+                "16ihdnwck79db21g2pnqq8acc4n68k8agqgx36bghijh22qbr9pi"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-pydantic))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/jaraco/inflect")
+    (synopsis
+     "Correctly generate plurals, singular nouns, ordinals, indefinite articles")
+    (description
+     "inflect.py provide plural inflections, singular noun inflections,
+\"a\"/\"an\" selection for English words, and manipulation of numbers as
+words.")
     (license license:expat)))
 
 (define-public python-simplegeneric
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:03 GMT) Full text and rfc822 format available.

Message #47 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 4/7] gnu: Add python-jaraco-text.
Date: Fri,  3 Feb 2023 00:58:13 +0800
* gnu/packages/python-xyz.scm (python-jaraco-text): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c89fa1c412..2b12b3392d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8970,6 +8970,34 @@ (define-public python-inflect
 words.")
     (license license:expat)))
 
+(define-public python-jaraco-text
+  (package
+    (name "python-jaraco-text")
+    (version "3.11.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "jaraco.text" version))
+              (sha256
+               (base32
+                "0lc3ji0xgd35rbrr2yrp3ykhmgp2xjj1r04w2yl6w5zyjnaminqd"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-autocommand
+                             python-importlib-resources
+                             python-inflect
+                             python-jaraco-context
+                             python-jaraco-functools
+                             python-more-itertools))
+    (native-inputs (list python-pathlib2
+                         python-pytest))
+    (home-page "https://github.com/jaraco/jaraco.text")
+    (synopsis "Module for text manipulation")
+    (description
+     "This package provides handy routines for dealing with text,
+such as wrapping, substitution, trimming, stripping, prefix and suffix
+removal, line continuation, indentation, comment processing, identifier
+processing, values parsing, case insensitive comparison, and more.")
+    (license license:expat)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:03 GMT) Full text and rfc822 format available.

Message #50 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 5/7] gnu: Add python-pypytools.
Date: Fri,  3 Feb 2023 00:58:14 +0800
* gnu/packages/python-xyz.scm (python-pypytools): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2b12b3392d..c5a96a0226 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8998,6 +8998,27 @@ (define-public python-jaraco-text
 processing, values parsing, case insensitive comparison, and more.")
     (license license:expat)))
 
+(define-public python-pypytools
+  (package
+    (name "python-pypytools")
+    (version "0.6.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pypytools" version))
+              (sha256
+               (base32
+                "0ag5xyzagprji0m2pkqsfy8539s003mn41pl6plbmh6iwi9w0h51"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f)) ; no tests
+    (propagated-inputs (list python-py))
+    (home-page "https://github.com/antocuni/pypytools/")
+    (synopsis
+     "Tools to use PyPy-specific features, with CPython fallbacks")
+    (description
+     "This package provides a collection of useful tools to use PyPy-specific
+features, with CPython fallbacks.")
+    (license license:x11)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:04 GMT) Full text and rfc822 format available.

Message #53 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 7/7] gnu: Add fava.
Date: Fri,  3 Feb 2023 00:58:16 +0800
* gnu/packages/finance.scm (fava): 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 c9c8e9b823..c5055f28c4 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2022 Collin J. Doering <collin <at> rekahsoft.ca>
 ;;; Copyright © 2022 Justin Veilleux <terramorpha <at> cock.li>
 ;;; Copyright © 2023 Frank Pursel <frank.pursel <at> gmail.com>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1942,6 +1943,41 @@ (define-public beancount
 generate a variety of reports from them, and provides a web interface.")
     (license license:gpl2)))
 
+(define-public fava
+  (package
+    (name "fava")
+    (version "1.23.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fava" version))
+              (sha256
+               (base32
+                "0dbg29i3pdbv8m2n7qspafn5ja1glxf27xcdz8rdn3myjqh183sk"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list beancount
+                             python-babel
+                             python-beautifulsoup4
+                             python-bottle
+                             python-cheroot
+                             python-click
+                             python-flask
+                             python-flask-babel
+                             python-jinja2
+                             python-magic
+                             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)
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Thu, 02 Feb 2023 17:01:04 GMT) Full text and rfc822 format available.

Message #56 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: dan <i <at> dan.games>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH v2 6/7] gnu: Add python-cheroot.
Date: Fri,  3 Feb 2023 00:58:15 +0800
* gnu/packages/python-web.scm (python-cheroot): New variable.
---
 gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e7134677a9..bcdf3658ee 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -58,6 +58,7 @@
 ;;; Copyright © 2022 msimonin <matthieu.simonin <at> inria.fr>
 ;;; Copyright © 2022 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull <at> hotmail.fr>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -980,6 +981,34 @@ (define-public python-httplib2
 other HTTP libraries.")
     (license license:expat)))
 
+(define-public python-cheroot
+  (package
+    (name "python-cheroot")
+    (version "8.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "cheroot" version))
+              (sha256
+               (base32
+                "09cfy2iwqs1j8k0mailcdzzjw0lkg4lyc6rddi45b5dcgipdysin"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-importlib-metadata python-jaraco-functools
+                             python-more-itertools))
+    (native-inputs (list python-pytest
+                         python-requests
+                         python-requests-unixsocket
+                         python-requests-toolbelt
+                         python-pypytools
+                         python-trustme
+                         python-pyopenssl
+                         python-jaraco-text
+                         python-portend
+                         python-setuptools-scm-git-archive))
+    (home-page "https://cheroot.cherrypy.dev")
+    (synopsis "Highly-optimized, pure-python HTTP server")
+    (description "Cheroot is a high-performance, pure-Python HTTP server.")
+    (license license:bsd-3)))
+
 (define-public httpie
   (package
     (name "httpie")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:10:01 GMT) Full text and rfc822 format available.

Message #59 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Subject: [PATCH 0/7] gnu: Add fava.
Date: Sun, 17 Mar 2024 17:07:21 +0000
[Message part 1 (text/plain, inline)]
Hi dan,

I've completed the other round of review and applied some modification
to the patches. Some of them were already applied or available on the
time I check the series.

- New packages [4/4]
  - [X] fava
    - Update to 1.24.4, the highest compatible with available Flask in Guix.
    - Fix tests
    - Relax requirements
  - [X] python-cheroot
    - Update to 10.0.1
    - Enable tests
  - [X] python-markdown2
    - Update to 2.4.13
    - Enable tests
    - Improve description
  - [X] python-pypytools
- Related fixes to make series buildable [1/1]
  - [X] beancount
    - Adjust package style
    - Enable tests
    - Enable sanity check

Build and Lint are passed locally for V3, let's check what's QA would
tell us now ;-).

--
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:01 GMT) Full text and rfc822 format available.

Message #62 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH v3 1/7] gnu: beancount: Adjust packages style.
Date: Sun, 17 Mar 2024 17:08:08 +0000
* gnu/packages/finance.scm (beancount) [arguments]: Use G-expressions.
<#:phases>: Remove trailing #f from lambda.

Change-Id: I3a248c0b233b0f4d73dcc01f269cfb0a12fe06ff
---
 gnu/packages/finance.scm | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 8c30bd1a30..01412b2f0a 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1976,17 +1976,17 @@ (define-public beancount
        (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))
-         ;; No module named 'google_auth_oauthlib'
-         (delete 'sanity-check))))
+     (list
+      #: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',") ""))))
+          ;; No module named 'google_auth_oauthlib'
+          (delete 'sanity-check))))
     (inputs
      (list python-beautifulsoup4
            python-bottle

base-commit: d1b6d77aaef3c2a7ecc930de1cce2b9ac20203bf
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:02 GMT) Full text and rfc822 format available.

Message #65 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH v3 2/7] gnu: beancount: Enable sanity check.
Date: Sun, 17 Mar 2024 17:08:09 +0000
Inputs was swapped to propagated-inputs to allow other packages
depending on `beancount` to pass sanity check.

* gnu/packages/finance.scm (beancount) [arguments] <#:phases>: Remove
'ignore-googleapis phase. Add 'relax-requirements phase, disabling check
for "pdfminer2".
[propagated-inputs]: Add python-google-api-client and
python-google-auth-oauthlib.

Change-Id: I15af4cd9cdbf5d522b9c5570e3ba60ad4d29e231
---
 gnu/packages/finance.scm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 01412b2f0a..b9be19df74 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1980,18 +1980,18 @@ (define-public beancount
       #: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
+          (add-after 'unpack 'relax-requirements
             (lambda _
               (substitute* "setup.py"
-                (("'google-api-python-client',") ""))))
-          ;; No module named 'google_auth_oauthlib'
-          (delete 'sanity-check))))
-    (inputs
+                ;; Use compatible fork, and do not fail during sanity check.
+                (("\"pdfminer2\",") "")))))))
+    (propagated-inputs
      (list python-beautifulsoup4
            python-bottle
            python-chardet
            python-dateutil
+           python-google-api-client
+           python-google-auth-oauthlib
            python-lxml
            python-magic
            python-ply
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:02 GMT) Full text and rfc822 format available.

Message #68 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH v3 3/7] gnu: beancount: Enable tests.
Date: Sun, 17 Mar 2024 17:08:10 +0000
* gnu/packages/finance.scm (beancount) [source]: Swap to git checkout,
containing all required test data files.
[build-system]: Swap to pyproject-build-system.
[arguments] <#:phases>: Add 'build-extensions phase.
[propagated-inputs]: python-auth2client.
[native-inputs]: Add gnupg and python-pdfminer-six.

Change-Id: Id0c725cae8cdc677ad0c3a0a75be6eea682eee05
---
 gnu/packages/finance.scm | 36 ++++++++++++++++++++++++++++--------
 1 file changed, 28 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index b9be19df74..c248f614ab 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -37,6 +37,7 @@
 ;;; Copyright © 2023 Foundation Devices, Inc. <hello <at> foundationdevices.com>
 ;;; Copyright © 2023 Attila Lendvai <attila <at> lendvai.name>
 ;;; Copyright © 2024 Saku Laesvuori <saku <at> laesvuori.fi>
+;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1969,22 +1970,40 @@ (define-public beancount
     (version "2.3.6")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "beancount" version))
+       (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 "0nj7sdh7wxc0hv8wxwqhw9v1zgx1sn4w92368ci2wzdmssz967w0"))
-       (patches (search-patches "beancount-disable-googleapis-fonts.patch"))))
-    (build-system python-build-system)
+        (base32 "1slxsjw29cyr2kbirdpijhpqspk55k38rpmk3zc02pr1wll62qsv"))
+       (patches (search-patches "beancount-disable-googleapis-fonts.patch"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Remove broken experiments.
+            (delete-file-recursively "experiments")
+            ;; Remove bundled packages.
+            (delete-file-recursively "third_party")))))
+    (build-system pyproject-build-system)
     (arguments
      (list
-      #:tests? #f  ; Says test is missing, not sure why
+      #:test-flags
+      #~(list "-k" (string-append
+                    ;; ModuleNotFoundError: No module named 'pytest'
+                    "not test_parse_stdin"
+                    ;; AssertionError: 5 not greater than 20
+                    " and not test_setup"))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'relax-requirements
             (lambda _
               (substitute* "setup.py"
                 ;; Use compatible fork, and do not fail during sanity check.
-                (("\"pdfminer2\",") "")))))))
+                (("\"pdfminer2\",") ""))))
+          (add-before 'check 'build-extensions
+            (lambda _
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
     (propagated-inputs
      (list python-beautifulsoup4
            python-bottle
@@ -1994,10 +2013,11 @@ (define-public beancount
            python-google-auth-oauthlib
            python-lxml
            python-magic
+           python-oauth2client
            python-ply
            python-requests))
     (native-inputs
-     (list python-pytest))
+     (list gnupg python-pdfminer-six python-pytest))
     (home-page "https://beancount.github.io/")
     (synopsis "Command-line double-entry accounting tool")
     (description
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:03 GMT) Full text and rfc822 format available.

Message #71 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, dan <i <at> dan.games>
Subject: [PATCH v3 5/7] gnu: Add python-pypytools.
Date: Sun, 17 Mar 2024 17:08:12 +0000
From: dan <i <at> dan.games>

* gnu/packages/python-xyz.scm (python-pypytools): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus <at> gmail.com>
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0e458fdadc..c4a5375839 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11433,6 +11433,27 @@ (define-public python-jaraco-text
 processing, values parsing, case insensitive comparison, and more.")
     (license license:expat)))
 
+(define-public python-pypytools
+  (package
+    (name "python-pypytools")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pypytools" version))
+       (sha256
+        (base32 "0ag5xyzagprji0m2pkqsfy8539s003mn41pl6plbmh6iwi9w0h51"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f)) ; no tests
+    (propagated-inputs (list python-py))
+    (home-page "https://github.com/antocuni/pypytools/")
+    (synopsis
+     "Tools to use PyPy-specific features, with CPython fallbacks")
+    (description
+     "This package provides a collection of useful tools to use PyPy-specific
+features, with CPython fallbacks.")
+    (license license:x11)))
+
 (define-public python-simplegeneric
   (package
     (name "python-simplegeneric")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:03 GMT) Full text and rfc822 format available.

Message #74 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, dan <i <at> dan.games>
Subject: [PATCH v3 6/7] gnu: Add python-cheroot.
Date: Sun, 17 Mar 2024 17:08:13 +0000
From: dan <i <at> dan.games>

* gnu/packages/python-web.scm (python-cheroot): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus <at> gmail.com>
---
 gnu/packages/python-web.scm | 57 +++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c2bdfc8da8..f14c0a7bde 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -58,6 +58,7 @@
 ;;; Copyright © 2022 msimonin <matthieu.simonin <at> inria.fr>
 ;;; Copyright © 2022 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull <at> hotmail.fr>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;; Copyright © 2023 John Kehayias <john.kehayias <at> protonmail.com>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan <at> selidor.net>
 ;;; Copyright © 2024 Troy Figiel <troy <at> troyfigiel.com>
@@ -1279,6 +1280,62 @@ (define-public python-httplib2
 other HTTP libraries.")
     (license license:expat)))
 
+(define-public python-cheroot
+  (package
+    (name "python-cheroot")
+    (version "10.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cheroot" version))
+       (sha256
+        (base32
+         "1w0ind0dza9j1py56y23344piqkpyfmcm060qfrnk6gggy3s3i2r"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      #~(list "--cov=cheroot"
+              ;; Tests a flaky in parallel invocation.
+              ;; "--numprocesses=auto"
+              "--doctest-modules"
+              "--showlocals"
+              ;; Disable test requiring networking.
+              "-k" "not test_tls_client_auth")
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? test-flags #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion "/tmp"
+                  (apply invoke "pytest" "-v"
+                         (append test-flags (list #$output))))))))))
+    (propagated-inputs
+     (list python-jaraco-functools
+           python-more-itertools
+           python-six))
+    (native-inputs
+     (list python-cryptography
+           python-jaraco-text
+           python-portend
+           python-pyopenssl
+           python-pypytools
+           python-pytest
+           python-pytest-cov
+           python-pytest-mock
+           python-pytest-xdist
+           python-requests
+           python-requests-toolbelt
+           python-requests-unixsocket
+           python-setuptools-scm
+           python-setuptools-scm-git-archive
+           python-trustme))
+    (home-page "https://cheroot.cherrypy.dev")
+    (synopsis "Highly-optimized, pure-python HTTP server")
+    (description
+     "Cheroot is a high-performance, pure-Python HTTP server.")
+    (license license:bsd-3)))
+
 (define-public httpie
   (package
     (name "httpie")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:04 GMT) Full text and rfc822 format available.

Message #77 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, dan <i <at> dan.games>
Subject: [PATCH v3 7/7] gnu: Add fava.
Date: Sun, 17 Mar 2024 17:08:14 +0000
From: dan <i <at> dan.games>

* gnu/packages/finance.scm (fava): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus <at> gmail.com>
---
 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 <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2022 Philip McGrath <philip <at> philipmcgrath.com>
 ;;; Copyright © 2022 Collin J. Doering <collin <at> rekahsoft.ca>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;; Copyright © 2022 Justin Veilleux <terramorpha <at> cock.li>
 ;;; Copyright © 2023 Frank Pursel <frank.pursel <at> gmail.com>
 ;;; Copyright © 2023 Skylar Hill <stellarskylark <at> posteo.net>
@@ -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)
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#60238; Package guix-patches. (Sun, 17 Mar 2024 17:11:04 GMT) Full text and rfc822 format available.

Message #80 received at 60238 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, dan <i <at> dan.games>
Subject: [PATCH v3 4/7] gnu: Add python-markdown2.
Date: Sun, 17 Mar 2024 17:08:11 +0000
From: dan <i <at> dan.games>

* gnu/packages/python-xyz.scm (python-markdown2): New variable.

Signed-off-by: Sharlatan Hellseher <sharlatanus <at> gmail.com>
---
 gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ed8c945be..0e458fdadc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -136,6 +136,7 @@
 ;;; Copyright © 2023 Amade Nemes <nemesamade <at> gmail.com>
 ;;; Copyright © 2023 Bruno Victal <mirai <at> makinata.eu>
 ;;; Copyright © 2023 Kaelyn Takata <kaelyn.alexi <at> protonmail.com>
+;;; Copyright © 2023 dan <i <at> dan.games>
 ;;; Copyright © 2023 Dominik Delgado Steuter <d <at> delgado.nrw>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan <at> selidor.net>
 ;;; Copyright © 2023 Ontje Lünsdorf <ontje.luensdorf <at> dlr.de>
@@ -14245,6 +14246,41 @@ (define-public python-markdown
 markdown_py is also provided to convert Markdown files to HTML.")
     (license license:bsd-3)))
 
+(define-public python-markdown2
+  (package
+    (name "python-markdown2")
+    (version "2.4.13")
+    (source
+     (origin
+       (method git-fetch) ; no tests data in PyPi package
+       (uri (git-reference
+             (url "https://github.com/trentm/python-markdown2")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0m1wy8i4xmna5b97dvks8cfjmc1wid8pxmd2h82869d0ajva3r6a"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? test-flags #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion "test"
+                  (invoke "python" "testall.py"))))))))
+    (native-inputs
+     (list python-pygments))
+    (home-page "https://github.com/trentm/python-markdown2")
+    (synopsis "Fast and complete Python implementation of Markdown")
+    (description
+     "This package provides a fast and complete Python implementation of
+Markdown.  It was written to closely match the behaviour of the original
+Perl-implemented Markdown.pl.  It also comes with a number of
+extensions (called @code{extras}) for things like syntax coloring, tables,
+header-ids.")
+    (license license:expat)))
+
 (define-public python-mdx-include
   (package
     (name "python-mdx-include")
-- 
2.41.0





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Tue, 19 Mar 2024 09:52:02 GMT) Full text and rfc822 format available.

Notification sent to dan <i <at> dan.games>:
bug acknowledged by developer. (Tue, 19 Mar 2024 09:52:02 GMT) Full text and rfc822 format available.

Message #85 received at 60238-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60238-done <at> debbugs.gnu.org
Subject: [PATCH 0/7] gnu: Add fava.
Date: Tue, 19 Mar 2024 09:50:10 +0000
[Message part 1 (text/plain, inline)]
Hi,

- Already avialalbe packages [3/3]
  - [X] python-jaraco-text :: Added from
    <https://issues.guix.gnu.org/68192>
  - [X] python-inflect :: Added in
    6cac909c95b77b58f48b920e49f8802526a3e290 by Ricardo Wurmus
    <rekado <at> elephly.net>
  - [X] python-portend :: Added from <https://issues.guix.gnu.org/68191>

Patches adding fava, python-cheroot, python-pypytools and
python-markdown2 are pushed as 228c55cbf0..044d3f4bef to master.

Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 16 Apr 2024 11:24:19 GMT) Full text and rfc822 format available.

This bug report was last modified 10 days ago.

Previous Next


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