From 05f6cfa1e56bfe232b2674fea5a462a2ff947d7b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 1 Apr 2024 13:22:30 +0300 Subject: [PATCH] gnu: rust-plotters-0.3: Update to 0.3.5. * gnu/packages/crates-io.scm (rust-plotters-0.3): Update to 0.3.5. [arguments]: Don't skip the build. Add cargo-test-flags. [cargo-inputs]: Add rust-ab-glyph-0.2, rust-once-cell-1. Replace rust-font-kit-0.10 with 0.11, rust-image-0.23 with 0.24, rust-ttf-parser-0.12 with 0.17. [cargo-development-inputs]: Add rust-criterion-0.4, rust-itertools-0.10, rust-rand-0.8, rust-rand-distr-0.4, rust-rand-xorshift-0.3, rust-rayon-1, rust-serde-1, rust-serde-derive-1, rust-serde-json-1, rust-wasm-bindgen-test-0.3. [native-inputs]: Add pkg-config. [inputs]: Add fontconfig. Change-Id: I99b71d035324d4c6e66974ac7e6e409732baaf48 --- gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b7053c96db..aad3c3c3ed 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -53377,30 +53377,53 @@ (define-public rust-plist-1 (define-public rust-plotters-0.3 (package (name "rust-plotters") - (version "0.3.1") + (version "0.3.5") (source (origin (method url-fetch) (uri (crate-uri "plotters" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0akgmm5kqghl2b1q1qkzjggiqnb9smaz54fd5374k5qbqfggv8rj")))) + (base32 "0igxq58bx96gz58pqls6g3h80plf17rfl3b6bi6xvjnp02x29hnj")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t + `(#:cargo-test-flags + '("--release" "--" + ;; Not all files included. + "--skip=src/lib.rs - (line 310)" + "--skip=src/lib.rs - (line 458)" + "--skip=src/lib.rs - (line 480)" + "--skip=src/lib.rs - (line 508)" + "--skip=src/lib.rs - (line 534)" + "--skip=src/lib.rs - (line 576)") #:cargo-inputs - (("rust-chrono" ,rust-chrono-0.4) - ("rust-font-kit" ,rust-font-kit-0.10) - ("rust-image" ,rust-image-0.23) + (("rust-ab-glyph" ,rust-ab-glyph-0.2) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-font-kit" ,rust-font-kit-0.11) + ("rust-image" ,rust-image-0.24) ("rust-lazy-static" ,rust-lazy-static-1) ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-once-cell" ,rust-once-cell-1) ("rust-pathfinder-geometry" ,rust-pathfinder-geometry-0.5) ("rust-plotters-backend" ,rust-plotters-backend-0.3) ("rust-plotters-bitmap" ,rust-plotters-bitmap-0.3) ("rust-plotters-svg" ,rust-plotters-svg-0.3) - ("rust-ttf-parser" ,rust-ttf-parser-0.12) + ("rust-ttf-parser" ,rust-ttf-parser-0.17) ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) - ("rust-web-sys" ,rust-web-sys-0.3)))) + ("rust-web-sys" ,rust-web-sys-0.3)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.4) + ("rust-itertools" ,rust-itertools-0.10) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-distr" ,rust-rand-distr-0.4) + ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) + (native-inputs (list pkg-config)) + (inputs (list fontconfig)) (home-page "https://github.com/38/plotters") (synopsis "Rust drawing library focus on data plotting") (description