From e62f8e9942d00c65eb7083ef5c3cbbb8f0e76160 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 29 Dec 2024 22:13:49 +0200 Subject: [PATCH] gnu: Add rust-tabled-0.16. * gnu/packages/crates-io.scm (rust-tabled-0.16): New variable. (rust-tabled-0.15): Inherit from rust-tabled-0.16. Change-Id: Ib7ef71c313cc389bdcd1b63832ba51fbd7b05860 --- 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 4e49788b8d..17d136c17a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -81274,8 +81274,41 @@ (define-public rust-systemstat-0.2 cross-platform way.") (license license:unlicense))) +(define-public rust-tabled-0.16 + (package + (name "rust-tabled") + (version "0.16.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tabled" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "06ybawqbcf1qk4laxff9cwxa26viwfda4bh14bvyv6qbwqz31jbp")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "Cargo.toml" + (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version) + (string-append "\"^" version))))))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Not all files included. + #:cargo-inputs (("rust-ansi-str" ,rust-ansi-str-0.8) + ("rust-ansitok" ,rust-ansitok-0.2) + ("rust-papergrid" ,rust-papergrid-0.12) + ("rust-tabled-derive" ,rust-tabled-derive-0.8)) + #:cargo-development-inputs (("rust-owo-colors" ,rust-owo-colors-3) + ("rust-testing-table" ,rust-testing-table-0.1)))) + (home-page "https://github.com/zhiburt/tabled") + (synopsis + "Library for pretty printing tables of Rust `struct`s and `enum`s") + (description "This package provides a library for pretty printing tables of +Rust @code{struct}s and @code{enum}s.") + (license license:expat))) + (define-public rust-tabled-0.15 (package + (inherit rust-tabled-0.16) (name "rust-tabled") (version "0.15.0") (source @@ -81285,7 +81318,6 @@ (define-public rust-tabled-0.15 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "03h5j83pp5pp0hbf6dh1fvh8pwhzj3qvmaj8d8cra54jic68p6ac")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; use of undeclared crate or module `testing_table` #:cargo-inputs @@ -81294,13 +81326,7 @@ (define-public rust-tabled-0.15 ("rust-papergrid" ,rust-papergrid-0.11) ("rust-tabled-derive" ,rust-tabled-derive-0.7) ("rust-unicode-width" ,rust-unicode-width-0.1)) - #:cargo-development-inputs (("rust-owo-colors" ,rust-owo-colors-3)))) - (home-page "https://github.com/zhiburt/tabled") - (synopsis - "Library for pretty printing tables of Rust `struct`s and `enum`s") - (description "This package provides a library for pretty printing tables of -Rust @code{struct}s and @code{enum}s.") - (license license:expat))) + #:cargo-development-inputs (("rust-owo-colors" ,rust-owo-colors-3)))))) (define-public rust-tabled-0.14 (package