[bug#75677,rust-team,v2,81/81] gnu: rust-json-patch-3: New variable.

Message ID 20250308033446.2101481-82-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:34 a.m. UTC
  * gnu/packages/crates-io.scm (rust-json-patch-3): New variable.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1226cc8b60..047cee17c6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38150,6 +38150,39 @@  (define-public rust-json-deserializer-0.4
      "This package provides a performant library to deserialize JSON.")
     (license license:asl2.0)))
 
+(define-public rust-json-patch-3
+  (package
+    (name "rust-json-patch")
+    (version "3.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "json-patch" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "023gm1q5xhhnhz7jqk009yb5wpjl4gckawgzxs82bg5nmzbjcdw6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-jsonptr" ,rust-jsonptr-0.6)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-thiserror" ,rust-thiserror-1)
+        ("rust-utoipa" ,rust-utoipa-4))
+       #:cargo-development-inputs
+       (("rust-expectorate" ,rust-expectorate-1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-serde-yaml" ,rust-serde-yaml-0.9)
+        ("rust-utoipa" ,rust-utoipa-4))))
+    (home-page "https://github.com/idubrov/json-patch")
+    (synopsis "RFC 6902, JavaScript Object Notation (JSON) Patch")
+    (description
+     "A @url{https://tools.ietf.org/html/rfc6902,JSON Patch (RFC 6902)} and
+ @url{https://tools.ietf.org/html/rfc7396,JSON Merge Patch (RFC 7396)}
+ implementation for Rust.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-jsonpath-lib-0.3
   (package
     (name "rust-jsonpath-lib")