guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#68941] [PATCH 36/44] gnu: Add node-es-get-iterator.


From: Nicolas Graves
Subject: [bug#68941] [PATCH 36/44] gnu: Add node-es-get-iterator.
Date: Tue, 6 Feb 2024 00:19:24 +0100

* gnu/packages/node-xyz.scm (node-es-get-iterator): New variable.
---
 gnu/packages/node-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index a1be047082..5a85e70e45 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -455,6 +455,51 @@ (define-public node-env-variable
 @code{localStorage} fallbacks.")
     (license license:expat)))
 
+(define-public node-es-get-iterator
+  (package
+    (name "node-es-get-iterator")
+    (version "1.1.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ljharb/es-get-iterator";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dbi90k1zs818hh4hsyj6vryjkpkxj4aw3id9rp5mvq9cp4jazp0"))))
+    (build-system node-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'patch-dependencies 'delete-dependencies
+           (lambda args
+             (delete-dependencies
+              '("@ljharb/eslint-config"
+               "aud"
+               "auto-changelog"
+               "core-js"
+               "es5-shim"
+               "es6-shim"
+               "eslint"
+               "for-each"
+               "has-bigints"
+               "npmignore"
+               "nyc"
+               "object-inspect"
+               "safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs
+     (list node-call-bind node-get-intrinsic node-is-map node-is-set
+           node-stop-iteration-iterator node-has-symbols node-is-arguments
+           node-is-string node-isarray))
+    (home-page "https://github.com/ljharb/es-get-iterator";)
+    (synopsis "Get an iterator for any Javascript language value")
+    (description "This package provides a Javascript function to get iterator
+for any language value.  This package works robustly accross all 
environments.")
+    (license license:expat)))
+
 (define-public node-far
   (package
     (name "node-far")
-- 
2.41.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]