[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/09: gnu: Add python-structlog.
From: |
guix-commits |
Subject: |
04/09: gnu: Add python-structlog. |
Date: |
Mon, 15 Feb 2021 04:37:56 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit bab0c30be31944a3f2ea3fe99269859db192ffea
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Feb 14 14:08:58 2021 +0200
gnu: Add python-structlog.
* gnu/packages/python-xyz.scm (python-structlog): New variable.
---
gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cc21caa..d0548c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10785,6 +10785,41 @@ applications.")
(home-page "https://github.com/click-contrib/click-log")
(license license:expat)))
+(define-public python-structlog
+ (package
+ (name "python-structlog")
+ (version "20.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "structlog" version))
+ (sha256
+ (base32
+ "0x1i21vn3xjfa3j9ijbblia5z0jlzc9aqvpqc26sy16i8yjxyydg"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest"))
+ #t)))))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-freezegun" ,python-freezegun)
+ ("python-pretend" ,python-pretend)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-asyncio" ,python-pytest-asyncio)
+ ("python-simplejson" ,python-simplejson)
+ ("python-twisted" ,python-twisted)))
+ (home-page "https://www.structlog.org/")
+ (synopsis "Structured Logging for Python")
+ (description "@code{structlog} changes logging in Python by adding
structure
+to your log entries.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public python-apipkg
(package
(name "python-apipkg")
- branch master updated (dd5e879 -> 80005d0), guix-commits, 2021/02/15
- 02/09: gnu: python-jeepney: Update to 0.6.0., guix-commits, 2021/02/15
- 01/09: gnu: python-tzlocal: Update to 2.1., guix-commits, 2021/02/15
- 05/09: gnu: python-keyring: Update to 22.0.1., guix-commits, 2021/02/15
- 06/09: gnu: python-keyring: Make tests skippable., guix-commits, 2021/02/15
- 07/09: gnu: python-pyxdg: Update to 0.27., guix-commits, 2021/02/15
- 09/09: gnu: Add openconnect-sso., guix-commits, 2021/02/15
- 04/09: gnu: Add python-structlog.,
guix-commits <=
- 03/09: gnu: python-secretstorage: Update to 3.3.1., guix-commits, 2021/02/15
- 08/09: gnu: poetry: Adjust for newer python-keyring., guix-commits, 2021/02/15