From d6e4b45e90eccda3975254dac0308c046263b900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= Date: Sat, 24 Feb 2024 21:40:08 +0100 Subject: [PATCH] gnu: Add rust-trycmd-0.15. * gnu/packages/crates-io.scm (rust-trycmd-0.15): New variable. (rust-trycmd-0.14): Inherit from rust-trycmd-0.15. Change-Id: Ib318a6ddc68cdd1dbe0317976ac18a49809c7439 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c5c62021a5..5fc48760cd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -78187,8 +78187,41 @@ (define-public rust-trybuild2-1 (with support for inline tests).") (license (list license:expat license:asl2.0)))) +(define-public rust-trycmd-0.15 + (package + (name "rust-trycmd") + (version "0.15.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "trycmd" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05sklyyprn2a365jzby0zn7z97p6mpgi2yzlr2s506m80cvdnkj6")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-anstream" ,rust-anstream-0.6) + ("rust-escargot" ,rust-escargot-0.5) + ("rust-glob" ,rust-glob-0.3) + ("rust-humantime" ,rust-humantime-2) + ("rust-humantime-serde" ,rust-humantime-serde-1) + ("rust-rayon" ,rust-rayon-1) + ("rust-schemars" ,rust-schemars-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-shlex" ,rust-shlex-1) + ("rust-snapbox" ,rust-snapbox-0.5) + ("rust-toml-edit" ,rust-toml-edit-0.22)))) + (home-page "https://github.com/assert-rs/trycmd") + (synopsis "Snapshot testing for a herd of CLI tests") + (description "trycmd is a test harness that will enumerate test case files +and run them to verify the results, taking inspiration from @code{trybuild} and +@code{cram}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-trycmd-0.14 (package + (inherit rust-trycmd-0.15) (name "rust-trycmd") (version "0.14.19") (source (origin @@ -78197,7 +78230,6 @@ (define-public rust-trycmd-0.14 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1yz4prkmnb1y406p0aq3r8yf11alj8i94yvnz3k07c9glir9607d")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-anstream" ,rust-anstream-0.6) @@ -78211,13 +78243,7 @@ (define-public rust-trycmd-0.14 ("rust-serde-json" ,rust-serde-json-1) ("rust-shlex" ,rust-shlex-1) ("rust-snapbox" ,rust-snapbox-0.4) - ("rust-toml-edit" ,rust-toml-edit-0.20)))) - (home-page "https://github.com/assert-rs/trycmd") - (synopsis "Snapshot testing for a herd of CLI tests") - (description "trycmd is a test harness that will enumerate test case files -and run them to verify the results, taking inspiration from @code{trybuild} and -@code{cram}.") - (license (list license:expat license:asl2.0)))) + ("rust-toml-edit" ,rust-toml-edit-0.20)))))) (define-public rust-trycmd-0.13 (package