diff mbox series

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

Message ID YOti7Wc6AIqrFC7w@thunix.net
State New
Headers show
Series [bug#49451,01/20] gnu: rust-blake2: Update to 0.9 | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

southerntofu July 11, 2021, 9:30 p.m. UTC
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
diff mbox series

Patch

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