[bug#72783,1/2] gnu: Add emacs-plz-media-type.

Message ID 17fb085aea5d4dba863c6380f2beb263900c8a3b.1724493542.git.roman@burningswell.com
State New
Headers
Series Add emacs-plz-media-type and emacs-plz-event-source |

Commit Message

Roman Scherer Aug. 24, 2024, 10:08 a.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.

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

Comments

Liliana Marie Prikler Aug. 24, 2024, 10:32 a.m. UTC | #1
Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
> 
> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
> ---
>  gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index cb7269d6b9..7ce112ea00 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
>  which avoids some of the issues with using Emacs’s built-in Url
> library.")
>      (license license:gpl3+)))
>  
> +(define-public emacs-plz-media-type
> +  (package
> +    (name "emacs-plz-media-type")
> +    (version "0.2.1")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/r0man/plz-media-type")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
> +    (build-system emacs-build-system)
> +    (propagated-inputs (list emacs-plz))
> +    (arguments (list #:tests? #f))
> +    (home-page "https://github.com/r0man/plz-media-type")
> +    (synopsis "HTTP media type extension for plz.el")
> +    (description "The plz-media-type library enhances MIME type
> +handling for HTTP requests within Emacs.  It leverages the plz.el
> HTTP
> +library for networking calls and introduces a mechanism to process
> +responses based on the content type header.  This library defines
> +various classes and methods for parsing and processing standard MIME
> +types, including JSON, XML, HTML, and binary data."
SGTM.
> It is used in the
> +Emacs LLM library to handle decoding of various streaming and
> +non-streaming media type formats.")
I'm not sure whether this bit is necessary.  There are hopefully useful
technologies out there that also benefit from plz.

Cheers
  
Roman Scherer Aug. 24, 2024, 11:19 a.m. UTC | #2
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

Hi Liliana,

thanks for the review. I removed that bit and sent v2 of the series.

Thanks, Roman.

> Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
>> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
>> 
>> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
>> ---
>>  gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
>>  1 file changed, 28 insertions(+)
>> 
>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>> index cb7269d6b9..7ce112ea00 100644
>> --- a/gnu/packages/emacs-xyz.scm
>> +++ b/gnu/packages/emacs-xyz.scm
>> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
>>  which avoids some of the issues with using Emacs’s built-in Url
>> library.")
>>      (license license:gpl3+)))
>>  
>> +(define-public emacs-plz-media-type
>> +  (package
>> +    (name "emacs-plz-media-type")
>> +    (version "0.2.1")
>> +    (source
>> +     (origin
>> +       (method git-fetch)
>> +       (uri (git-reference
>> +             (url "https://github.com/r0man/plz-media-type")
>> +             (commit (string-append "v" version))))
>> +       (file-name (git-file-name name version))
>> +       (sha256
>> +        (base32
>> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
>> +    (build-system emacs-build-system)
>> +    (propagated-inputs (list emacs-plz))
>> +    (arguments (list #:tests? #f))
>> +    (home-page "https://github.com/r0man/plz-media-type")
>> +    (synopsis "HTTP media type extension for plz.el")
>> +    (description "The plz-media-type library enhances MIME type
>> +handling for HTTP requests within Emacs.  It leverages the plz.el
>> HTTP
>> +library for networking calls and introduces a mechanism to process
>> +responses based on the content type header.  This library defines
>> +various classes and methods for parsing and processing standard MIME
>> +types, including JSON, XML, HTML, and binary data."
> SGTM.
>> It is used in the
>> +Emacs LLM library to handle decoding of various streaming and
>> +non-streaming media type formats.")
> I'm not sure whether this bit is necessary.  There are hopefully useful
> technologies out there that also benefit from plz.
>
> Cheers
  

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cb7269d6b9..7ce112ea00 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21460,6 +21460,34 @@  (define-public emacs-plz
 which avoids some of the issues with using Emacs’s built-in Url library.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-media-type
+  (package
+    (name "emacs-plz-media-type")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-media-type")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-media-type")
+    (synopsis "HTTP media type extension for plz.el")
+    (description "The plz-media-type library enhances MIME type
+handling for HTTP requests within Emacs.  It leverages the plz.el HTTP
+library for networking calls and introduces a mechanism to process
+responses based on the content type header.  This library defines
+various classes and methods for parsing and processing standard MIME
+types, including JSON, XML, HTML, and binary data.  It is used in the
+Emacs LLM library to handle decoding of various streaming and
+non-streaming media type formats.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")