From 35d6da84d7c4b7cbc7e649f7834307d617c7c0f0 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 16 Jan 2025 22:50:28 +0100 Subject: [PATCH] gnu: Add rust-ndarray-npy-0.9. * gnu/packages/crates-io.scm (rust-ndarray-npy-0.9): New variable. Change-Id: I69bb42218e09a32250e8feeee0d6ca8e0a1a9845 --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 823912869a..24b1d469df 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44588,6 +44588,34 @@ (define-public rust-ndarray-0.12 ("rust-quickcheck" ,rust-quickcheck-0.7) ("rust-rawpointer" ,rust-rawpointer-0.1)))))) +(define-public rust-ndarray-npy-0.9 + (package + (name "rust-ndarray-npy") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ndarray-npy" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1abqnbfn9xhq5q5nli78yip3wh2zq4gi7dnrm50r3i38qj43fcbv")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-ndarray" ,rust-ndarray-0.16) + ("rust-num-complex" ,rust-num-complex-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-py-literal" ,rust-py-literal-0.4) + ("rust-zip" ,rust-zip-2)))) + (home-page "https://github.com/jturner314/ndarray-npy") + (synopsis ".npy and .npz file format support for ndarray") + (description + "This package provides @file{.npy} and @file{.npz} file format support +for @code{ndarray}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ndk-0.9 (package (name "rust-ndk")