gnu: Add python-concurrent-log-handler.

* gnu/packages/python-xyz.scm (python-concurrent-log-handler): New variable.
This commit is contained in:
Troy Figiel 2024-01-13 21:15:49 +01:00 committed by Mathieu Othacehe
parent 4acaa72e7b
commit 1e0b80b9e1
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -400,6 +400,35 @@ (define-public python-jupytext
")
(license license:expat)))
(define-public python-concurrent-log-handler
(package
(name "python-concurrent-log-handler")
(version "0.9.25")
;; No tests in the PyPI tarball.
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Preston-Landers/concurrent-log-handler")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0jp4zkm0idfdsrq3jzb52iqfkh6xzm7sacz1sa34ffnkyqdk3xzh"))))
(build-system pyproject-build-system)
(propagated-inputs (list python-portalocker))
(native-inputs (list python-hatchling python-pytest))
(home-page "https://github.com/Preston-Landers/concurrent-log-handler")
(synopsis
"Additional log handler for Python's standard @code{logging} package")
(description
"This package provides an additional log handler for Python's standard
@code{logging} package (PEP 282). This handler will write log events to a log
file which is rotated when the log file reaches a certain size. Multiple
processes can safely write to the same log file concurrently and rotated logs
can be gzipped if desired. An optional threaded queue logging handler is
provided to perform logging in the background.")
(license license:asl2.0)))
(define-public python-logzero
(package
(name "python-logzero")