[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/26: gnu: Add python-logbook.
From: |
guix-commits |
Subject: |
18/26: gnu: Add python-logbook. |
Date: |
Mon, 18 Oct 2021 03:27:51 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 7caaebc50d799a5df1e8a56bf9394f4024caf459
Author: Sébastien Lerique <sl@eauchat.org>
AuthorDate: Fri Oct 15 11:40:30 2021 +0900
gnu: Add python-logbook.
* gnu/packages/python-xyz.scm (python-logbook): New variable.
Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
---
gnu/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a99df74..0070e4c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -269,6 +269,44 @@ asynchronous one follows
design}.")
(license license:asl2.0)))
+(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)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'cythonize-sources
+ (lambda _
+ (with-directory-excursion "logbook"
+ (invoke "cython" "_speedups.pyx"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Check cython build also
+ (setenv "CYBUILD" "True")
+ (invoke "pytest" "--cov=logbook" "-r" "s" "tests")))))))
+ (native-inputs
+ `(("python-cython" ,python-cython)
+ ("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-google-brotli" ,python-google-brotli)))
+ (home-page "https://github.com/getlogbook/logbook")
+ (synopsis "Logbook is a logging replacement for Python")
+ (description
+ "Logbook is a logging system for Python that replaces the standard
+library’s logging module. It was designed with both complex and simple
+applications in mind and the idea to make logging fun.")
+ (license license:bsd-3)))
+
(define-public python-ueberzug
(package
(name "python-ueberzug")
- 02/26: gnu: python-peewee: Update to 3.14.4., (continued)
- 02/26: gnu: python-peewee: Update to 3.14.4., guix-commits, 2021/10/18
- 05/26: gnu: python-hyperframe: Update to 6.0.1., guix-commits, 2021/10/18
- 03/26: gnu: python-pycryptodome: Update to 3.11.0., guix-commits, 2021/10/18
- 04/26: gnu: python-aiohttp-socks: Update to 0.6.0., guix-commits, 2021/10/18
- 06/26: gnu: python-h11: Update to 0.12.0., guix-commits, 2021/10/18
- 07/26: gnu: python-socks: Update to 1.2.4., guix-commits, 2021/10/18
- 08/26: gnu: python-hpack: Update to 4.0.0., guix-commits, 2021/10/18
- 09/26: gnu: python-h2: Update to 4.1.0., guix-commits, 2021/10/18
- 10/26: gnu: python-future: Update to 0.18.2., guix-commits, 2021/10/18
- 17/26: gnu: Add python-janus., guix-commits, 2021/10/18
- 18/26: gnu: Add python-logbook.,
guix-commits <=
- 21/26: gnu: Add python-olm., guix-commits, 2021/10/18
- 13/26: gnu: python-ukpostcodeparser: Update to 1.1.2., guix-commits, 2021/10/18
- 20/26: gnu: Add python-aspectlib., guix-commits, 2021/10/18
- 22/26: gnu: Add python-matrix-nio., guix-commits, 2021/10/18
- 12/26: gnu: python-faker: Update to 9.3.1., guix-commits, 2021/10/18
- 24/26: gnu: python-socks: Fix indentation., guix-commits, 2021/10/18
- 23/26: gnu: Add pantalaimon., guix-commits, 2021/10/18
- 26/26: gnu: python-xyz.scm: Add copyright line., guix-commits, 2021/10/18
- 25/26: gnu: python-faker: Fix indentation., guix-commits, 2021/10/18
- 15/26: gnu: Add python-atomicwrites-1.4., guix-commits, 2021/10/18