guix-commits
[Top][All Lists]
Advanced

[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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]