summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-03-09 16:49:22 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:22 +0300
commita54ba2322ec5902f72b947d4aa8197b1c8152c7a (patch)
treee6db81f89f30eec789c0834cdfcb9e4cd486230e
parent1b36364c706ccf742e4216d453cee19e49036201 (diff)
downloadguix-a54ba2322ec5902f72b947d4aa8197b1c8152c7a.tar.gz
gnu: Add rust-test-case-macros-2.
* gnu/packages/crates-io.scm (rust-test-case-macros-2): New variable.
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 029f1017e3..150ed2f80c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61693,6 +61693,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")