From a54ba2322ec5902f72b947d4aa8197b1c8152c7a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 9 Mar 2023 16:49:22 +0200 Subject: 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(+) (limited to 'gnu/packages') 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") -- cgit 1.4.1