all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Schott <sschott@mailbox.org>
To: 39292@debbugs.gnu.org
Cc: Sebastian Schott <sschott@mailbox.org>
Subject: [bug#39292] [PATCH 08/10] gnu: Add python-colorlog
Date: Sat,  7 Mar 2020 16:11:44 +0100	[thread overview]
Message-ID: <20200307151146.2581-8-sschott@mailbox.org> (raw)
In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org>

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6e42f3a70e..05c9c1e5d5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,35 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-colorlog
+  (package
+    (name "python-colorlog")
+    (version "4.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "colorlog" version))
+              (sha256
+               (base32
+                "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      ;; Extend PYTHONPATH so the built package will be found.
+                      (setenv "PYTHONPATH"
+                              (string-append (getcwd) "/build/lib:"
+                                             (getenv "PYTHONPATH")))
+                      (invoke "pytest" "-p" "no:logging")
+                      #t)))))
+    (home-page "https://github.com/borntyping/python-colorlog")
+    (synopsis "Log formatting with colors for python")
+    (description "The @code{colorlog.ColoredFormatter} is a formatter for use
+with Python's logging module that outputs records using terminal colors.")
+    (license license:expat)))
+
 (define-public python-pyprind
   (package
     (name "python-pyprind")
-- 
2.24.0

  parent reply	other threads:[~2020-03-07 15:13 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26 10:07 [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader sschott
2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
2020-01-27  8:39     ` Christopher Baines
2020-01-26 17:24   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
2020-01-27  8:40     ` Christopher Baines
2020-01-26 17:24   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-01-27  8:49     ` Christopher Baines
2020-01-27  8:35   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Christopher Baines
2020-02-02  9:36 ` [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-02-02 10:11   ` Christopher Baines
2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
2020-03-07 15:11   ` Sebastian Schott [this message]
2020-03-07 15:11   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-03-15 18:47   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Leo Famulari
2020-03-15 21:26     ` Christopher Baines
2020-03-15 21:39       ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200307151146.2581-8-sschott@mailbox.org \
    --to=sschott@mailbox.org \
    --cc=39292@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.