From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42467) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfg-0002LD-RL for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlff-0001fh-QM for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlff-0001fS-N1 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlff-00019D-K8 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Subject: [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:35 +0100 Message-Id: <20200126172437.1644-8-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39292@debbugs.gnu.org Cc: Sebastian Schott * gnu/packages/python-xyz.scm (python-colorlog): New variable. --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 56be634201..979db8be21 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -168,6 +168,33 @@ #: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")))))) + (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