[bug#77382,rust-team,16/18] gnu: Add rust-mockito-0.32.
Commit Message
* 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(+)
@@ -11,6 +11,7 @@
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2025 Gabriel Santos <gabrielsantosdesouza@disroot.org>
;;;
;;; 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")