aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-web.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-31 14:57:53 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:45:38 +0300
commit941fdb10843522aebf9d91c5da87740b9f71583e (patch)
treee1c2db385e209e77575ada82537dc5853beeacbe /gnu/packages/crates-web.scm
parentefc0c66343a721d9742cbc6450c81e959fb5df28 (diff)
downloadguix-941fdb10843522aebf9d91c5da87740b9f71583e.tar.gz
guix-941fdb10843522aebf9d91c5da87740b9f71583e.zip
gnu: Add rust-mockito-1.
* gnu/packages/crates-web.scm (rust-mockito-1): New variable. Change-Id: I033b9f48b3ad9d5497a0c58085ac7391f87bef19
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r--gnu/packages/crates-web.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 7838b1f080..5bf8b5c0a0 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4117,6 +4117,47 @@ which speaks Serde.")
(description "Create and decode JWTs in a strongly typed way.")
(license license:expat)))
+(define-public rust-mockito-1
+ (package
+ (name "rust-mockito")
+ (version "1.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "mockito" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "07mz6yyfnl1ka29wkl1qa6mvm66lwsjf8y3cl0m3kpsvm8iy1xnj"))))
+ (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_assert_with_last_unmatched_request_and_query")
+ #:cargo-inputs (("rust-assert-json-diff" ,rust-assert-json-diff-2)
+ ("rust-colored" ,rust-colored-2)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-hyper" ,rust-hyper-0.14)
+ ("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-env-logger" ,rust-env-logger-0.8)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-reqwest" ,rust-reqwest-0.11)
+ ("rust-testing-logger" ,rust-testing-logger-0.1)
+ ("rust-tokio" ,rust-tokio-1))))
+ (native-inputs (list pkg-config))
+ (inputs (list openssl))
+ (home-page "https://github.com/lipanski/mockito")
+ (synopsis "HTTP mocking for Rust")
+ (description "This package provides HTTP mocking for Rust.")
+ (license license:expat)))
+
(define-public rust-multipart-0.18
(package
(name "rust-multipart")