[PATCH] gnu: Add python-spacy-loggers

OpenSubmitted by Artyom V. Poptsov.
Details
One participant
  • Artyom V. Poptsov
Owner
unassigned
Severity
normal
A
A
Artyom V. Poptsov wrote on 11 Jun 15:46 +0200
(address . guix-patches@gnu.org)
87leu3xqhz.fsf@gmail.com
Hello,

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

- Artyom

References:
1. "Logging utilities for spaCy"
From 142fa4269b867a49628a2f3eae02e0033c281186 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
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(+)

Toggle diff (41 lines)
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 <poptsov.artyom@gmail.com>
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmKknJgACgkQ6cWi2QiY
oC9oYAf8C+usvvSWYpwzHUA8aPfDa/d1bC6aBR2m00c/Y7but1253ioNJqmuASwY
8DvEcE+sYhg07phQGF9sz6uRUyNLXZ5R6J16t2J7hKT2e2whX3482PgrnXyBDIrr
RQVJIEGdCAYigR+mYolp53GB5/6lBLwCvUIdwkET+hhuxzosKT+0pnrNsJ2UbvQR
rrQ2cxrMHHEvHvA2Y5gR7pIlR7r7ey/9eRgFDKyypH0OKj46DvGutIxe6msscY0C
Nx9S0HbH0I9WjC7FXVXhjGM0lSbkb4ZSET6C2IG6iiq/rmJWNnIXUvzBe3vxa2lB
2p2hfz6m0Oivr+gBulPGr4woicPJsg==
=pWLP
-----END PGP SIGNATURE-----

A
A
Artyom V. Poptsov wrote on 3 Jul 07:10 +0200
(address . guix-patches@gnu.org)
87v8seixxu.fsf@gmail.com
Hello,

this is an updated version of the patch that is rebased on 'master' and
with some style fixes.
From 5a732b5f6afeef9dc75848d6afa8334048601ff7 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
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 | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1d43049776..a63392036e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30006,3 +30006,32 @@ (define-public python-langcodes
 and names, built from Unicode CLDR and the IANA subtag registry, if you
 install @code{python-language-data}.")
     (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 #:tests? #f)) ; It needs spaCy itself to run the tests.
+    (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.34.1
- Artyom

--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
-----BEGIN PGP SIGNATURE-----

iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmLBJK0ZHHBvcHRzb3Yu
YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL6o+CACKz3eUb9Tezg2SGwye6zdg
UYbN758hoCSBW0z+oIif0ZusGB4Cv9knHVZZ5qATEGxFa90F8tbWc6/gsXA55Ie3
abZnlGoYg3InwSDDZQ6o3+tgS40M6hKuwV9rcmQdnb7EF2pP0ci8ty7KsIdEEBcS
HHBF76Sj2aA+xD6Sz3DASuodZQYXVPE7tLpJQhWcd2aX1iz/jeYKtrzrtFjwHcTm
ElBXiES956oWuNqrGf0QMGaiVG5RFeAinIjJqfgXbZaBG0lS8kZwis+2mUGzEmcq
xSOJ42Vy09Odvfto3MnL2d8XFq3+CtG3dZZzG14YE5/WLsRfbDrNXUA8RFCTVb0Y
=nO76
-----END PGP SIGNATURE-----

?