Subject: [PATCH v2 35/44] gnu: Add node-object-is.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 Feb 2024 01:24:58 +0100

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

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 6da4d52a90..d93456e47c 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -1508,6 +1508,48 @@ (define-public node-object-inspect
 string representations of objects in Javascript.")
     (license license:expat)))
 
+(define-public node-object-is
+  (package
+    (name "node-object-is")
+    (version "1.1.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/es-shims/object-is")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dcl5164jv8jvkf75im58zri2ryvbwa1r53z3mccbrd5i9biz1vw"))))
+    (build-system node-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'patch-dependencies 'delete-dependencies
+           (lambda args
+             (delete-dependencies
+              '("@es-shims/api"
+                "@ljharb/eslint-config"
+		"aud"
+		"auto-changelog"
+		"eslint"
+		"functions-have-names"
+		"has-symbols"
+                "in-publish"
+		"npmignore"
+		"nyc"
+		"safe-publish-latest"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs
+     (list node-call-bind node-define-properties))
+    (home-page "https://github.com/es-shims/object-is")
+    (synopsis "Javascript alternative for the @code{Object.is} shim")
+    (description "This package provides a Javascript @code{Object.is} shim,
+but that can differentiate between @code{-0} and @code{+0} and can compare to
+@code{NaN}.")
+    (license license:expat)))
+
 (define-public node-once
   (package
     (name "node-once")
-- 
2.41.0