aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn/packages/genenetwork.scm24
-rw-r--r--gn/packages/javascript.scm127
2 files changed, 150 insertions, 1 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index 4bd5c94..ecba3d0 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -303,10 +303,32 @@ location of a putative QTL.")
("python2-unittest2" ,python2-unittest2)
("python2-xlsxwriter" ,python2-xlsxwriter)
("python2-qtlreaper" ,python2-qtlreaper)
+ ;; All the external js dependencies
("javascript-twitter-post-fetcher" ,javascript-twitter-post-fetcher)
("javascript-cytoscape" ,javascript-cytoscape)
("javascript-panzoom" ,javascript-cytoscape-panzoom)
("javascript-qtip" ,javascript-cytoscape-qtip)
+ ("javascript-chroma" ,javascript-chroma)
+ ("javascript-d3-tip" ,javascript-d3-tip)
+ ("javascript-jscolor" ,javascript-jscolor)
+ ("js-jstat" ,js-jstat)
+ ("js-md5" ,js-md5)
+ ("js-parsley" ,js-parsley)
+ ("javascript-plotly" ,javascript-plotly)
+ ("javascript-typeahead" ,javascript-typeahead)
+ ("js-underscore" ,js-underscore)
+ ("js-smart-time-ago" ,js-smart-time-ago)
+ ("javascript-nouislider" ,javascript-nouislider)
+ ("javascript-purescript-genome-browser" ,javascript-purescript-genome-browser)
+ ("javascript-datatables" ,javascript-datatables)
+ ("javascript-datatables-scroller" ,javascript-datatables-scroller)
+ ("javascript-datatables-buttons" ,javascript-datatables-buttons)
+ ("javascript-datatables-buttons-bootstrap" ,javascript-datatables-buttons-bootstrap)
+ ("javascript-datatables-plugins" ,javascript-datatables-plugins)
+ ("javascript-datatables-col-reorder" ,javascript-datatables-col-reorder)
+ ("javascript-datatables-col-resize" ,javascript-datatables-col-resize)
+ ("javascript-shapiro-wilk" ,javascript-shapiro-wilk)
+ ("javascript-underscore-string" ,javascript-underscore-string)
))
(inputs
`(("javascript-colorbox" ,(package-source javascript-colorbox))))
@@ -505,7 +527,7 @@ written in C")
("javascript-cytoscape" ,javascript-cytoscape)
("javascript-panzoom" ,javascript-cytoscape-panzoom)
("javascript-qtip" ,javascript-cytoscape-qtip)
-
+ ("javascript-chroma" ,javascript-chroma)
;; With Python3 support
("gunicorn" ,gunicorn)
("python-rpy2" ,python-rpy2)
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index c2634f8..c18df19 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -1122,6 +1122,103 @@ requirements inside your form HTML tags. It can also automatically detects
your forms' modifications and adapts its validation accordingly.")
(license license:expat)))
+(define-public javascript-jszip
+ (package
+ (name "javascript-jszip")
+ (version "3.2.2") ; July 4, 2019
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Stuk/jszip")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "185n341knjqmmpzs7gjv9xd2id2vy85l9in2q058hsz36lz3rpjz"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/jszip"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (install-file (string-append dist "/jszip.js") targetdir)
+ (install-file (string-append dist "/jszip.min.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://stuk.github.io/jszip/")
+ (synopsis "JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API.")
+ (description
+ "JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API.")
+ (license license:expat)))
+
+(define-public javascript-shapiro-wilk
+ (package
+ (name "javascript-shapiro-wilk")
+ (version "1.0.0") ; Sept 27, 2012
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rniwa/js-shapiro-wilk")
+ (commit "451e6341832dc42de026b1d18ac0282da7f72a1e")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1azy5h30m7j86bq2zvwpkm5l4jgypbrp3bjlwa4z6la2h0c4l2nz"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/shapiro-wilk"))
+ (source (assoc-ref %build-inputs "source")))
+ (install-file (string-append source "/shapiro-wilk.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://stuk.github.io/jszip/")
+ (synopsis "Shapiro-Wilk Test in JavaScript (ported from R)")
+ (description
+ "Shapiro-Wilk Test in JavaScript (ported from R)")
+ (license license:expat)))
+
+(define-public javascript-underscore-string
+ (package
+ (name "javascript-underscore-string")
+ (version "3.2.1") ; Oct 4, 2018
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/esamattis/underscore.string")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1cqfpbjfb33h60yd4rp09024ckbq1mbd4njlh7pxbhrrzwyv2kmk"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/underscore-string"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (install-file (string-append dist "/underscore.string.js") targetdir)
+ (install-file (string-append dist "/underscore.string.min.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "http://esamattis.github.com/underscore.string/")
+ (synopsis "String manipulation helpers for javascript")
+ (description
+ "Javascript lacks complete string manipulation operations. This is an attempt to fill that gap. List of build-in methods can be found for example from Dive Into JavaScript. Originally started as an Underscore.js extension but is a full standalone library nowadays.")
+ (license license:expat)))
+
(define-public js-parsley
(package
(inherit javascript-parsley)
@@ -1283,6 +1380,36 @@ experience.")
"Tooltips for d3.js visualizations.")
(license license:expat)))
+(define-public javascript-purescript-genome-browser
+ (package
+ (name "javascript-purescript-genome-browser")
+ (version "0.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/BonfaceKilz/Dist-Purestript-Genome-Browser")
+ (commit "93d45a55ca5053bb87b6d4627ae5c7d973c046ea")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0mp47ms696pijd95agvfg32anyrg6rx0gxkhzm8423pqcfqfad5s"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/purescript-genome-browser"))
+ (source (assoc-ref %build-inputs "source")))
+ (copy-recursively source targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://github.com/chfi/purescript-genetics-browser")
+ (synopsis "Dist files for the purescript genetics browser")
+ (description
+ "Dist files for the purescript genetics browser")
+ (license license:expat)))
(define-public javascript-jquery-ui
(package