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

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

* gnu/packages/node-xyz.scm (node-is-callable): 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 d2ef624082..896f9f058d 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -662,6 +662,51 @@ (define-public node-irc
 It has functions for joining, parting, talking, and many other IRC commands.")
     (license license:gpl3+)))
 
+(define-public node-is-callable
+  (package
+    (name "node-is-callable")
+    (version "1.2.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/inspect-js/is-callable")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0syzhiw9k1ync27avrpbz5vznz2yj2n4i2z4ypylv53flzar9hk6"))))
+    (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"
+		"available-typed-arrays"
+		"eclint"
+		"es-value-fixtures"
+		"eslint"
+		"for-each"
+		"has-tostringtag"
+		"make-arrow-function"
+		"make-async-function"
+		"make-generator-function"
+		"npmignore"
+		"nyc"
+		"object-inspect"
+		"rimraf"
+		"safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (home-page "https://github.com/inspect-js/is-callable")
+    (synopsis "Javascript predicate to identify if value is callable")
+    (description "This package provides a Javascript function to identify if a
+value is callable.")
+    (license license:expat)))
+
 (define-public node-long-stack-traces
   (package
     (name "node-long-stack-traces")
-- 
2.41.0