From 6a6522e76841c893ce06301fcf7218c1189828da Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 22:00:05 +0200 Subject: [PATCH] gnu: Add rust-argminmax-0.6. * gnu/packages/crates-io.scm (rust-argminmax-0.6): New variable. Change-Id: I4b997d0305dad407034ca8afa2c36e3faeed4360 --- gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index af8c84b6f8..635e61e618 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2553,6 +2553,44 @@ CLI parser, like @code{rust-clap}, by pre-processing the arguments, like too long errors.") (license (list license:expat license:asl2.0)))) +(define-public rust-argminmax-0.6 + (package + (name "rust-argminmax") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "argminmax" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1alfp2wfh3pms6f5fj8qw9birndgac2jd2shdl2xascxsrclnhjj")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "Cargo.toml" + (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version) + (string-append "\"^" version))))))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ; `#![feature]` may not be used on the stable release channel + #:cargo-inputs (("rust-arrow" ,rust-arrow-5) + ("rust-arrow2" ,rust-arrow2-0.7) + ("rust-half" ,rust-half-2) + ("rust-ndarray" ,rust-ndarray-0.15) + ("rust-num-traits" ,rust-num-traits-0.2)) + #:cargo-development-inputs + (("rust-codspeed-criterion-compat" ,rust-codspeed-criterion-compat-2) + ("rust-criterion" ,rust-criterion-0.5) + ("rust-rand" ,rust-rand-0.8) + ("rust-rstest" ,rust-rstest-0.18) + ("rust-rstest-reuse" ,rust-rstest-reuse-0.6)))) + (home-page "https://github.com/jvdd/argminmax") + (synopsis + "ArgMinMax (argmin & argmax in 1 function) with SIMD for floats and integers") + (description + "@code{ArgMinMax} (argmin & argmax in 1 function) with SIMD for floats and +integers.") + (license license:expat))) + (define-public rust-ariadne-0.1 (package (name "rust-ariadne")