Subject: [bug#49451] [PATCH 14/20] gnu: Add rust-mockall

From: southerntofu <[email-masked]>
Date: Sun, 11 Jul 2021 17:30:21 -0400

---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2a9e477aaf..0e57d3c145 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26740,6 +26740,39 @@ IOCP and Async I/O abstractions.")
        #:cargo-development-inputs
        (("rust-rand" ,rust-rand-0.3))))))
 
+(define-public rust-mockall-0.9
+  (package
+    (name "rust-mockall")
+    (version "0.9.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "mockall" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1m9kpv4523503v48ahyzk9g2rabvbjl70mlbkc8mkfzr4fni9mhq"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-cfg-if" ,rust-cfg-if-1)
+         ("rust-downcast" ,rust-downcast-0.10)
+         ("rust-fragile" ,rust-fragile-1)
+         ("rust-lazy-static" ,rust-lazy-static-1)
+         ("rust-mockall-derive" ,rust-mockall-derive-0.9)
+         ("rust-predicates" ,rust-predicates-1)
+         ("rust-predicates-tree" ,rust-predicates-tree-1))))
+    (home-page "https://github.com/asomers/mockall")
+    (synopsis
+      "Powerful mock object library for Rust
+")
+    (description
+      "This package provides a powerful mock object library for Rust
+")
+    (license (list license:expat license:asl2.0))))
 
 (define-public rust-mockall-derive-0.9
   (package
-- 
2.30.2