From 0c51b25bd17c6ec73cdfc67078d665021f32b11d Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Tue, 19 Dec 2023 22:55:09 -0500 Subject: [PATCH] gnu: Add rust-enterpolation-0.2. * gnu/packages/crates-graphics.scm (rust-enterpolation-0.2): New variable. Change-Id: I5e4ac4acf1357db36db12604fd688a5c508373c7 Signed-off-by: Efraim Flashner --- gnu/packages/crates-graphics.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 8b9e3238a0..fdb54b435b 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -787,6 +787,35 @@ (define-public rust-dcv-color-primitives-0.4 "This package provides a library to perform image color model conversion.") (license license:expat-0))) +(define-public rust-enterpolation-0.2 + (package + (name "rust-enterpolation") + (version "0.2.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "enterpolation" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ah41msghasm0i97awa67rv3mg6p3j0xijswy1gpdipprg4gbb8z")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Not all files included. + #:cargo-inputs + (("rust-assert-float-eq" ,rust-assert-float-eq-1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-serde" ,rust-serde-1) + ("rust-topology-traits" ,rust-topology-traits-0.1)) + #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5) + ("rust-image" ,rust-image-0.24) + ("rust-palette" ,rust-palette-0.7)))) + (home-page "https://github.com/NicolasKlenert/enterpolation") + (synopsis "Library for create and compute interpolations and extrapolations") + (description + "This package provides a library for creating and computing interpolations, +extrapolations and smoothing of generic data points.") + (license (list license:expat license:asl2.0)))) + (define-public rust-euclid-0.22 (package (name "rust-euclid")