guix-commits
[Top][All Lists]
Advanced

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

17/37: gnu: Add rust-test-case-macros-2.


From: guix-commits
Subject: 17/37: gnu: Add rust-test-case-macros-2.
Date: Thu, 9 Mar 2023 12:12:02 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 6b9c7cab7890507b692a0af70ed31ab897c22d17
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:49:22 2023 +0200

    gnu: Add rust-test-case-macros-2.
    
    * gnu/packages/crates-io.scm (rust-test-case-macros-2): New variable.
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 31f9e1815c..7d93a1463c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61506,6 +61506,31 @@ into mod, giving clear and readable test results.")
        (("rust-insta" ,rust-insta-0.12)
         ("rust-lazy-static" ,rust-lazy-static-1))))))
 
+(define-public rust-test-case-macros-2
+  (package
+    (name "rust-test-case-macros")
+    (version "2.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "test-case-macros" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 
"09jvbfvz48v6ya3i25gp3lbr6ym1fz7qyp3l6bcdslwkw7v7nnz4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-proc-macro-error" ,rust-proc-macro-error-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/frondeus/test-case";)
+    (synopsis "Macros for the test-case crate")
+    (description
+     "This package provides #[test_case(...)] procedural macro attribute for
+generating parametrized test cases easily.")
+    (license license:expat)))
+
 (define-public rust-test-cert-gen-0.7
   (package
     (name "rust-test-cert-gen")



reply via email to

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