[PATCH 6/9] gnu: Add node-pbf.

DoneSubmitted by Nicolas Graves.
Details
3 participants
  • Liliana Marie Prikler
  • Marius Bakke
  • Nicolas Graves
Owner
unassigned
Severity
normal
Merged with
N
N
Nicolas Graves wrote on 14 Jun 11:49 +0200
(address . guix-patches@gnu.org)(name . Nicolas Graves)(address . ngraves@ngraves.fr)
20220614094954.15197-6-ngraves@ngraves.fr
* gnu/packages/node-xyz.scm (node-pbf): New variable.
---
gnu/packages/node-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)

Toggle diff (48 lines)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 3d945871cd..aa838108ad 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -233,6 +233,41 @@ (define-public node-oop
 while being as light-weight and simple as possible.")
       (license license:expat))))
 
+(define-public node-pbf
+  (package
+    (name "node-pbf")
+    (version "3.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mapbox/pbf")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+          (base32
+           "1r8xs787ix79yr0vrwrizdml9h7cmxjrzhvnhkj784ac5f8nv5j7"))))
+    (build-system node-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'check)
+         (replace 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (invoke (string-append (assoc-ref inputs "node") "/bin/npm")
+                     "--offline" "--ignore-scripts" "install" "--production")
+             #t)))))
+    (inputs (list node-ieee754 node-resolve-protobuf-schema))
+    (home-page "https://github.com/mapbox/pbf")
+    (synopsis "Low-level library for decoding and encodingprotocol buffers in
+Javascript")
+    (description "This package is a low-level, fast, ultra-lightweight (3KB
+gzipped) JavaScript library for decoding and encoding protocol buffers, a
+compact binary format for structured data serialization. Works both in Node and
+the browser. Supports lazy decoding and detailed customization of the
+reading/writing code.")
+    (license license:bsd-3)))
+
 (define-public node-protocol-buffers-schema
   (package
     (name "node-protocol-buffers-schema")
-- 
2.36.1
L
L
Liliana Marie Prikler wrote on 15 Jun 11:21 +0200
(address . control@debbugs.gnu.org)
c511c7cd5bad5cf933cfee73d92d8253d8b3c9ef.camel@ist.tugraz.at
merge 55958 55959 55960 55961 55962 55963 55964 55965 55966
thanks
M
M
Marius Bakke wrote on 23 Jun 23:10 +0200
(name . Nicolas Graves)(address . ngraves@ngraves.fr)
87zgi3qe61.fsf@gnu.org
Nicolas Graves via Guix-patches via <guix-patches@gnu.org> skriver:

Toggle quote (42 lines)
> * gnu/packages/node-xyz.scm (node-pbf): New variable.
> ---
> gnu/packages/node-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
> index 3d945871cd..aa838108ad 100644
> --- a/gnu/packages/node-xyz.scm
> +++ b/gnu/packages/node-xyz.scm
> @@ -233,6 +233,41 @@ (define-public node-oop
> while being as light-weight and simple as possible.")
> (license license:expat))))
>
> +(define-public node-pbf
> + (package
> + (name "node-pbf")
> + (version "3.2.1")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/mapbox/pbf")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "1r8xs787ix79yr0vrwrizdml9h7cmxjrzhvnhkj784ac5f8nv5j7"))))
> + (build-system node-build-system)
> + (arguments
> + '(#:phases
> + (modify-phases %standard-phases
> + (delete 'check)
> + (replace 'configure
> + (lambda* (#:key inputs #:allow-other-keys)
> + (invoke (string-append (assoc-ref inputs "node") "/bin/npm")
> + "--offline" "--ignore-scripts" "install" "--production")
> + #t)))))
> + (inputs (list node-ieee754 node-resolve-protobuf-schema))
> + (home-page "https://github.com/mapbox/pbf")
> + (synopsis "Low-level library for decoding and encodingprotocol buffers in
> +Javascript")

Maybe "Decode and encode protocol buffers in Javascript"?

Toggle quote (6 lines)
> + (description "This package is a low-level, fast, ultra-lightweight (3KB
> +gzipped) JavaScript library for decoding and encoding protocol buffers, a
> +compact binary format for structured data serialization. Works both in Node and
> +the browser. Supports lazy decoding and detailed customization of the
> +reading/writing code.")

s/ultra-// and no need to mention the size. Remember two spaces after
punctuation (or 'guix lint'). Otherwise great. :-)
-----BEGIN PGP SIGNATURE-----

iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYrTWxg8cbWFyaXVzQGdu
dS5vcmcACgkQ6HGLpZEUEHfooAEAnG1zvxkjDwVnMIvxbtuNblXn+uHnSwKZ1v+C
xeoriAkBAKNnrglvFBvT6I/sw/4zky0osG6kPFSnNUHDrRg7wYQG
=kydo
-----END PGP SIGNATURE-----

N
N
Nicolas Graves wrote on 20 Jul 12:15 +0200
[PATCH] gnu: Add node-pbf.
(address . 55962@debbugs.gnu.org)(address . ngraves@ngraves.fr)
20220720101512.15920-1-ngraves@ngraves.fr
* gnu/packages/node-xyz.scm (node-pbf): New variable.
---
gnu/packages/node-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)

Toggle diff (46 lines)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 20325ebbc6..f124e2ebfb 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -232,6 +232,39 @@ (define-public node-oop
 while being as light-weight and simple as possible.")
       (license license:expat))))
 
+(define-public node-pbf
+  (package
+    (name "node-pbf")
+    (version "3.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mapbox/pbf")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+          (base32
+           "1r8xs787ix79yr0vrwrizdml9h7cmxjrzhvnhkj784ac5f8nv5j7"))))
+    (build-system node-build-system)
+    (arguments
+     '(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (invoke "npm" "--offline"
+                     "--ignore-scripts" "install" "--production"))))))
+    (inputs (list node-ieee754 node-resolve-protobuf-schema))
+    (home-page "https://github.com/mapbox/pbf")
+    (synopsis "Decode and encode protocol buffers in Javascript")
+    (description "This package is a low-level, fast and lightweight JavaScript
+library for decoding and encoding protocol buffers, a compact binary format
+for structured data serialization.  Works both in Node and the browser.
+Supports lazy decoding and detailed customization of the reading/writing
+code.")
+    (license license:bsd-3)))
+
 (define-public node-protocol-buffers-schema
   (package
     (name "node-protocol-buffers-schema")
-- 
2.37.0
?
Your comment

This issue is archived.

To comment on this conversation send email to 55962@debbugs.gnu.org