From 9c2e509cac29d9c510a22b0023b939f7edd5e806 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 2 Oct 2023 08:07:09 +0300 Subject: [PATCH] gnu: Add rust-serial-test-2. * gnu/packages/crates-io.scm (rust-serial-test-2): New variable. (rust-serial-test-1): Inherit from rust-serial-test-2. --- gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7dba33cdf4..496f0fc93d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -61581,8 +61581,40 @@ for later processing.") for data that potentially contains secrets (e.g. cryptographic keys).") (license (list license:asl2.0 license:expat)))) +(define-public rust-serial-test-2 + (package + (name "rust-serial-test") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "serial-test" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b9v0csv9wxl1gcjq99plwimxbmhgr6kzbwqyb457qh3d22xsmhf")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-dashmap" ,rust-dashmap-5) + ("rust-document-features" ,rust-document-features-0.2) + ("rust-fslock" ,rust-fslock-0.2) + ("rust-futures" ,rust-futures-0.3) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-log" ,rust-log-0.4) + ("rust-parking-lot" ,rust-parking-lot-0.12) + ("rust-serial-test-derive" ,rust-serial-test-derive-2)) + #:cargo-development-inputs + (("rust-itertools" ,rust-itertools-0.10) + ("rust-tokio" ,rust-tokio-1)))) + (home-page "https://github.com/palfrey/serial_test") + (synopsis "Allows for the creation of serialised Rust tests") + (description + "This package allows for the creation of serialised Rust tests.") + (license license:expat))) + (define-public rust-serial-test-1 (package + (inherit rust-serial-test-2) (name "rust-serial-test") (version "1.0.0") (source @@ -61592,7 +61624,6 @@ for data that potentially contains secrets (e.g. cryptographic keys).") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "04864v5ain4nan2k5l32sr3bxpg0sfxxs2iki3xxcq78g9s3132k")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-dashmap" ,rust-dashmap-5) @@ -61605,12 +61636,7 @@ for data that potentially contains secrets (e.g. cryptographic keys).") ("rust-serial-test-derive" ,rust-serial-test-derive-1)) #:cargo-development-inputs (("rust-itertools" ,rust-itertools-0.10) - ("rust-tokio" ,rust-tokio-1)))) - (home-page "https://github.com/palfrey/serial_test") - (synopsis "Allows for the creation of serialised Rust tests") - (description - "This package allows for the creation of serialised Rust tests.") - (license license:expat))) + ("rust-tokio" ,rust-tokio-1)))))) (define-public rust-serial-test-0.6 (package