guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#74551] [PATCH rust-team v3 44/73] gnu: Add rust-mockall-0.13.


From: Aaron Covrig
Subject: [bug#74551] [PATCH rust-team v3 44/73] gnu: Add rust-mockall-0.13.
Date: Mon, 2 Dec 2024 22:00:24 -0500

From: Jordan Moore <lockbox@struct.foo>

* gnu/packages/crates-io.scm (rust-mockall-0.13): New variable.
---
 gnu/packages/crates-io.scm | 42 +++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d5954f2677..f9ac0b383f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46082,8 +46082,42 @@ (define-public rust-mock-instant-0.2
     (arguments
      `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1))))))
 
+(define-public rust-mockall-0.13
+  (package
+    (name "rust-mockall")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mockall" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1lir70dd9cnsjlf20gi3i51ha9n7mlrkx74bx5gfszlcdk6bz9ir"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-downcast" ,rust-downcast-0.11)
+                       ("rust-fragile" ,rust-fragile-2)
+                       ("rust-mockall-derive" ,rust-mockall-derive-0.13)
+                       ("rust-predicates" ,rust-predicates-3)
+                       ("rust-predicates-tree" ,rust-predicates-tree-1))
+       #:cargo-development-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+                                   ("rust-auto-enums" ,rust-auto-enums-0.8)
+                                   ("rust-futures" ,rust-futures-0.3)
+                                   ("rust-mockall-double" 
,rust-mockall-double-0.3)
+                                   ("rust-serde" ,rust-serde-1)
+                                   ("rust-serde-derive" ,rust-serde-derive-1)
+                                   ("rust-serde-json" ,rust-serde-json-1)
+                                   ("rust-tracing" ,rust-tracing-0.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-0.11
   (package
+    (inherit rust-mockall-0.13)
     (name "rust-mockall")
     (version "0.11.4")
     (source (origin
@@ -46093,7 +46127,6 @@ (define-public rust-mockall-0.11
               (sha256
                (base32
                 "15kww0a3wv300wkksc6zj0kz1jwk0hyly48daxs2vvpj300lk12c"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f          ; Not all files included.
        #:cargo-inputs
@@ -46111,12 +46144,7 @@ (define-public rust-mockall-0.11
         ("rust-serde" ,rust-serde-1)
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-tracing" ,rust-tracing-0.1))))
-    (home-page "https://github.com/asomers/mockall";)
-    (synopsis "Mock object library for Rust")
-    (description
-     "Mockall is a rich mocking library with a terse and ergonomic interface.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-tracing" ,rust-tracing-0.1))))))
 
 (define-public rust-mockall-derive-0.13
   (package
-- 
2.47.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]