diff options
author | Sebastian Schott <sschott@mailbox.org> | 2020-01-26 18:24:35 +0100 |
---|---|---|
committer | Guix Patches Tester <> | 2020-01-26 17:27:12 +0000 |
commit | 6ba76f2db8062fa7c7e8f0841e8772ca1b5bb5fa (patch) | |
tree | 86666237a64b6ca20b4e30551e1ee8c9bcf3b51d | |
parent | a8f83e0df8c33bb4228d80264a499d401aa6e18b (diff) | |
download | guix-6ba76f2db8062fa7c7e8f0841e8772ca1b5bb5fa.tar guix-6ba76f2db8062fa7c7e8f0841e8772ca1b5bb5fa.tar.gz |
gnu: Add python-colorlog
* gnu/packages/python-xyz.scm (python-colorlog): New variable.
-rw-r--r-- | gnu/packages/python-xyz.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 97122afe5d..dddcc89581 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -169,6 +169,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") |