From 72dee8a040da0d3564148bbac6a0e221e041e010 Mon Sep 17 00:00:00 2001 From: Spencer King Date: Thu, 26 Sep 2024 21:37:23 +0000 Subject: [PATCH] gnu: Add julia-statisticaltraits. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/julia-xyz.scm (julia-statisticaltraits): New variable. Change-Id: I5ef338e3fcd92601e1e160d675d4bd2c4219e83f Signed-off-by: Ludovic Courtès --- gnu/packages/julia-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 4c9afed7aea..86318e5a8ab 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -6055,6 +6055,37 @@ downstream packages to implement new methods on these types without depending on the entirety of @code{StaticArrays.jl}.") (license license:expat))) +(define-public julia-statisticaltraits + (package + (name "julia-statisticaltraits") + (version "3.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaAI/StatisticalTraits.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1im2j3h8xlja8c4pz22xn4lgb2r7zx50284iwbl72sclhrmjzfkz")))) + (build-system julia-build-system) + (arguments + (list + #:julia-package-name "StatisticalTraits" + #:julia-package-uuid "64bff920-2084-43da-a3e6-9bb72801c0c9" + #:julia-package-dependencies + #~(list '("SparseArrays" . "2f01184e-e22b-5df5-ae63-d93ebab69eaf") + '("Test" . "8dfed614-e22c-5e08-85e1-65c5234f0b40")))) + (propagated-inputs (list julia-scientifictypesbase)) + (home-page "https://github.com/JuliaAI/StatisticalTraits.jl") + (synopsis "Implementations of traits possessed by statistical objects") + (description + "This package provides fall-back implementations for a collection +of traits possessed by statistical objects. A @code{trait} is a function with a single +arguments that is a Julia type, which might encode type metadata for inspection or +for use in function dispatch.") + (license license:expat))) + (define-public julia-statsapi (package (name "julia-statsapi")