From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58954) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8V-0000O0-90 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8U-0006tM-6N for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8U-0006t8-2c for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8T-0005TS-Uv for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Subject: [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:44 +0100 Message-Id: <20200307151146.2581-8-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-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 | 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