Subject: [bug#72783] [PATCH 2/2] gnu: Add emacs-plz-event-source.

From: Roman Scherer <[email-masked]>
Date: Sat, 24 Aug 2024 12:08:58 +0200

* gnu/packages/emacs-xyz.scm (emacs-plz-event-source): New variable.

Change-Id: I66fc237fb191c0406fcf2d08c2938264e2dd9b95
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7ce112ea00..a3340f1a36 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21488,6 +21488,30 @@ (define-public emacs-plz-media-type
 non-streaming media type formats.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-event-source
+  (package
+    (name "emacs-plz-event-source")
+    (version "0.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-event-source")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rg3dmaqnhzvzqsyfnk3y77s88jrjpwpzkj1fyz40j8b184q3qcs"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz-media-type))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-event-source")
+    (synopsis "Server-Sent Events extension for plz.el")
+    (description "The plz-event-source library provides a @code{plz-media-type}, a
+parser and an event source implementation for the @acronym{SSE, Server
+Sent Event} protocol.  It is used in the Emacs LLM library to handle
+server sent events.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")
-- 
2.45.2