Subject: [PATCH 06/24] gnu: Add python-logbook.

From: slg <[email-masked]>
Date: Sat, 19 Jun 2021 22:07:24 -0300

* gnu/packages/python-xyz.scm (python-logbook): New variable.
---
 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6831e2365b..bb3997501b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26034,3 +26034,33 @@ HTML cleaner in lxml to make the result both valid and safe.")
 and MIME type checking the magic numbers signature of a file or buffer.  This
 is a Python port from filetype Go package.")
     (license license:x11)))
+
+(define-public python-logbook
+  (package
+    (name "python-logbook")
+    (version "1.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Logbook" version))
+       (sha256
+        (base32
+         "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36"))))
+    (build-system python-build-system) ;; TODO: fix native extension build
+    ;; Fails with gcc trying to compile unexistent file 'logbook/_speedups.c'.
+    ;; Apparently it is generated from logbook/_speedups.pyx, I do not know if
+    ;; an extra build phase is needed to generate this file.
+    (arguments
+     `(#:tests? #f)) ;; Needs native extension, which for some reason will
+                     ;; not be compiled.
+    (propagated-inputs
+     `(("python-jinja2" ,python-jinja2)
+       ("python-sqlalchemy" ,python-sqlalchemy)
+       ("python-redis" ,python-redis)
+       ("python-pyzmq" ,python-pyzmq)
+       ("python-execnet" ,python-execnet)
+       ("python-brotli" ,python-brotli)))
+    (home-page "https://logbook.readthedocs.io/en/stable")
+    (synopsis "Python logging library")
+    (description "An awesome logging implementation that is fun to use.")
+    (license license:bsd-1)))
-- 
2.32.0