aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorArun Isaac2021-11-04 11:46:16 +0530
committerArun Isaac2021-11-04 13:32:24 +0530
commitc161769fc17ab04d721947ea0adf329d7f8ce2ea (patch)
tree0b211b9c851edd1f1ef0f179b29bd915512cc39e /gn
parentb317876cec32c60c9ce6eb0840343c7f5fadc8b1 (diff)
downloadguix-bioinformatics-c161769fc17ab04d721947ea0adf329d7f8ce2ea.tar.gz
gnu: Add weechat-wee-slack.
* gn/packages/messaging.scm (weechat-wee-slack): New variable.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/messaging.scm50
1 files changed, 50 insertions, 0 deletions
diff --git a/gn/packages/messaging.scm b/gn/packages/messaging.scm
index 0a74aa1..4c1e951 100644
--- a/gn/packages/messaging.scm
+++ b/gn/packages/messaging.scm
@@ -78,3 +78,53 @@
(description "@code{weechat-matrix} is a Python plugin for Weechat that lets
Weechat communicate over the Matrix protocol.")
(license license:isc)))
+
+(define-public weechat-wee-slack
+ (package
+ (name "weechat-wee-slack")
+ (version "2.8.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wee-slack/wee-slack")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0xfklr0gsc9jgxfyrrb2j756lclz9g8imcb0pk0xgyj8mhsw23zk"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Augment sys.path so that dependencies are found.
+ (substitute* "wee_slack.py"
+ (("import sys\n" all)
+ (apply string-append
+ all
+ (map (lambda (path)
+ (string-append "sys.path.append('" path "')\n"))
+ (string-split (getenv "PYTHONPATH") #\:)))))
+ ;; Install script.
+ (install-file "wee_slack.py"
+ (string-append (assoc-ref outputs "out")
+ "/share/weechat/python"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest")))))))
+ (inputs
+ `(("python-websocket-client" ,python-websocket-client)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/wee-slack/wee-slack")
+ (synopsis "Weechat Slack script")
+ (description "@code{weechat-wee-slack} is a WeeChat native client for
+Slack. It provides supplemental features only available in the web/mobile
+clients such as synchronizing read markers, typing notification, threads (and
+more)! It connects via the Slack API, and maintains a persistent websocket
+for notification of events.")
+ (license license:expat)))