aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-12-27 15:58:51 +0100
committerRicardo Wurmus <rekado@elephly.net>2024-01-01 14:35:12 +0100
commit745edcc4c074237034b3c9176ff7b25ad370b01c (patch)
treeed4ae6f1b5cd68cfd7e65807d3f2e4b16f6e253b /gnu/packages
parent5654f61541731442cbff191ba50e1f3c30fe89b3 (diff)
downloadguix-745edcc4c074237034b3c9176ff7b25ad370b01c.tar.gz
guix-745edcc4c074237034b3c9176ff7b25ad370b01c.zip
gnu: Add r-safetensors.
* gnu/packages/cran.scm (r-safetensors): New variable. Change-Id: I40bcee87cdbba9776f3448a2567f94ebb1e652b9
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cran.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 453ca4c11b..49b9ed3627 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -4670,6 +4670,29 @@ calculations, cut up and filter, change key names and values, perform
conditionals and comparisons, and more.")
(license license:expat)))
+(define-public r-safetensors
+ (package
+ (name "r-safetensors")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "safetensors" version))
+ (sha256
+ (base32 "0xvg5y2sd7gzcal0qqgxbx8vcvmy50jm0j2ajr8iw3wyy5qpyvkp"))))
+ (properties `((upstream-name . "safetensors")))
+ (build-system r-build-system)
+ (propagated-inputs (list r-cli r-jsonlite r-r6 r-rlang))
+ (home-page "https://github.com/mlverse/safetensors")
+ (synopsis "Safetensors file format")
+ (description
+ "This package provides a file format for storing tensors that is
+secure (doesn't allow for code execution), fast and simple to implement.
+@code{safetensors} also enables cross language and cross frameworks
+compatibility making it an ideal format for storing machine learning model
+weights.")
+ (license license:expat)))
+
(define-public r-sass
(package
(name "r-sass")