Subject: [bug#77382] [PATCH rust-team 16/18] gnu: Add rust-mockito-0.32.

From: Gabriel Santos <[email-masked]>
Date: Sun, 30 Mar 2025 09:26:31 -0300

* gnu/packages/crates-web.scm (rust-mockito-0.32): New variable.

Change-Id: If3fe7bf428e9d495d2bfe3942e5cb5ede58c9d6b
---
 gnu/packages/crates-web.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 8d567fc94f..7de3097edb 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2024 Tomas Volf <[email-masked]>
 ;;; Copyright © 2024 Nguyễn Gia Phong <[email-masked]>
 ;;; Copyright © 2025 Ricardo Wurmus <[email-masked]>
+;;; Copyright © 2025 Gabriel Santos <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5256,6 +5257,42 @@ (define-public rust-mockito-1
     (description "This package provides HTTP mocking for Rust.")
     (license license:expat)))
 
+(define-public rust-mockito-0.32
+  (package
+    (inherit rust-mockito-1)
+    (name "rust-mockito")
+    (version "0.32.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mockito" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "17zzlkhl4whqd9f97wsjk9ypl5n2ipyph2dv3775ka55imv46vs0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--"
+         "--skip=test_assert_with_last_unmatched_request"
+         "--skip=test_assert_with_last_unmatched_request_and_headers"
+         "--skip=test_legacy_assert_with_last_unmatched_request"
+         "--skip=test_legacy_assert_with_last_unmatched_request_and_headers")
+       #:cargo-inputs (("rust-assert-json-diff" ,rust-assert-json-diff-2)
+                       ("rust-colored" ,rust-colored-2)
+                       ("rust-futures" ,rust-futures-0.3)
+                       ("rust-hyper" ,rust-hyper-0.14)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-serde-urlencoded" ,rust-serde-urlencoded-0.7)
+                       ("rust-similar" ,rust-similar-2)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs
+       (("rust-reqwest" ,rust-reqwest-0.11)
+        ("rust-testing-logger" ,rust-testing-logger-0.1))))))
+
 (define-public rust-multipart-0.18
   (package
     (name "rust-multipart")
-- 
2.49.0