guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19/33: gnu: Add julia-stackviews.


From: guix-commits
Subject: 19/33: gnu: Add julia-stackviews.
Date: Mon, 14 Jun 2021 07:46:22 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit e490262fbd502222801aa15a1680b728dc76d533
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Jun 14 12:48:49 2021 +0300

    gnu: Add julia-stackviews.
    
    * gnu/packages/julia-xyz.scm (julia-stackviews): New variable.
---
 gnu/packages/julia-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 8ab24c0..e5a123a 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -3076,6 +3076,46 @@ default are documented to have non-stable streams (which 
for example enables
 some performance improvements).")
     (license license:expat)))
 
+(define-public julia-stackviews
+  (package
+    (name "julia-stackviews")
+    (version "0.1.1")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaArrays/StackViews.jl";)
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1fwiaxdpx1z9dli3jr8kyraych0jbdiny3qklynf0r13px25r6i7"))))
+    (build-system julia-build-system)
+    (arguments
+     `(#:tests? #f  ; Documenter.jl not packaged yet
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'skip-doctest
+           (lambda _
+             (substitute* "test/runtests.jl"
+               ((".*doctest.*") ""))
+             #t)))))
+    (propagated-inputs
+     `(("julia-offsetarrays" ,julia-offsetarrays)))
+    ;(native-inputs
+    ; `(("julia-aqua" ,julia-aqua)
+    ;   ("julia-documenter" ,julia-documenter)))
+    (home-page "https://github.com/JuliaArrays/StackViews.jl";)
+    (synopsis "No more catcat")
+    (description "StackViews provides only one array type: @code{StackView}.
+There are multiple ways to understand @code{StackView}:
+@itemize
+@item inverse of @code{eachslice}
+@item @code{cat} variant
+@item view object
+@item lazy version of @code{repeat} special case
+@end itemize")
+    (license license:expat)))
+
 (define-public julia-static
   (package
     (name "julia-static")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]