Subject: [bug#68941] [PATCH v2 44/44] gnu: Add node-deep-equal.

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

* gnu/packages/node-xyz.scm (node-deep-equal): New variable.
---
 gnu/packages/node-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 1623010d37..4858b7f17b 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -440,6 +440,58 @@ (define-public node-define-properties
 properties in Javascript directly on an object, returning the object."
    #:mozilla-doclink "Global_Objects/Object/defineProperties"))
 
+(define-public node-deep-equal
+  (package
+    (name "node-deep-equal")
+    (version "2.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/inspect-js/node-deep-equal")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1m3kw5wzbksv76avk3zaqiyfl8y80rpygbwz8ywy1x7z5ny7n32x"))))
+    (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"
+		"eslint"
+		"for-each"
+		"has-proto"
+                "has-symbols"
+                "has-typed-arrays"
+                "in-publish"
+		"npmignore"
+		"nyc"
+		"object.getownpropertydescriptors"
+		"safe-publish-latest"
+                "semver"
+                "tape")))))
+       #:tests? #f))  ; FIXME tests depend on node-tape.
+    (inputs
+     (list node-call-bind node-es-get-iterator node-get-intrinsic
+           node-is-array-buffer node-is-regex node-is-shared-array-buffer
+           node-object-is node-side-channel node-which-boxed-primitive
+           node-which-collection node-which-typed-array
+           node-array-buffer-byte-length node-is-arguments
+           node-is-date-object node-is-string node-isarray
+           node-object-keys node-object-assign node-regexp-prototype-flags))
+    (home-page "https://github.com/inspect-js/node-deep-equal")
+    (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-env-variable
   (package
     (name "node-env-variable")
-- 
2.41.0