Subject: [PATCH] gnu: Add python-spacy-loggers
From: "Artyom V. Poptsov" <[email-masked]>
To: [email-masked]
Date: Sat, 11 Jun 2022 16:46:00 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

this patch adds 'spacy-loggers'[1] under the name
'python-spacy-loggers'.

- Artyom

References:
1. "Logging utilities for spaCy"
   <https://github.com/explosion/spacy-loggers>

From 142fa4269b867a49628a2f3eae02e0033c281186 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
Date: Sat, 11 Jun 2022 16:43:36 +0300
Subject: [PATCH] gnu: Add python-spacy-loggers

* gnu/packages/python-xyz.scm (python-spacy-loggers): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 344a1d9089..00463970a6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29439,3 +29439,34 @@ Information about these scales can be
 @url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on
 Wikipedia}.")
     (license license:expat)))
+
+(define-public python-spacy-loggers
+  (package
+    (name "python-spacy-loggers")
+    (version "1.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "spacy-loggers" version))
+              (sha256
+               (base32
+                "0vjk2cnfl94yxg48p81209wr42hf8a67rjijf4ypdrlrrzs48pg7"))))
+    (build-system python-build-system)
+    (inputs
+     (list python-wasabi))
+    (arguments
+     (list
+      ;; XXX: 'spacy-loggers' needs spaCy itself to run the tests.
+      #:tests? #f))
+    (home-page "https://github.com/explosion/spacy-loggers")
+    (synopsis "Logging utilities for @code{python-spacy}")
+    (description "Starting with @code{python-spacy} v3.2, alternate loggers
+are moved into a separate package so that they can be added and updated
+independently from the core spaCy library.
+
+spacy-loggers currently provides loggers for:
+@itemize
+@item Weights & Biases
+@item MLflow
+@end itemize
+")
+    (license license:expat)))
-- 
2.25.1

-- 
Artyom "avp" Poptsov <[email-masked]>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F