Subject: [bug#68941] [PATCH 10/44] gnu: Add node-is-symbol.

From: Nicolas Graves <[email-masked]>
Date: Tue, 6 Feb 2024 00:18:58 +0100

* gnu/packages/node-xyz.scm (node-is-symbol): New variable.
---
 gnu/packages/node-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index c6e7cac861..facbeb6a75 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -755,6 +755,45 @@ (define-public node-is-callable
 value is callable.")
     (license license:expat)))
 
+(define-public node-is-symbol
+  (package
+    (name "node-is-symbol")
+    (version "1.0.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/inspect-js/is-symbol")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0lx6ym8y7wq3r1mzg6gbnpkd2dmprmylj14v1r6dj3sb8430kwps"))))
+    (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"
+		"eslint"
+		"has-tostringtag"
+		"in-publish"
+		"npmignore"
+		"nyc"
+		"object-inspect"
+		"safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs (list node-has-symbols))
+    (home-page "https://github.com/inspect-js/is-symbol")
+    (synopsis "Javascript predicate to identify if value is a symbol")
+    (description "This package provides a Javascript function to identify if a
+value is a @code{Symbol}.")
+    (license license:expat)))
+
 (define-public node-long-stack-traces
   (package
     (name "node-long-stack-traces")
-- 
2.41.0