From patchwork Sat Oct 30 20:25:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 34181 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2DEF027BBE3; Sat, 30 Oct 2021 21:26:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E431C27BBE1 for ; Sat, 30 Oct 2021 21:26:16 +0100 (BST) Received: from localhost ([::1]:38486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mguvg-0001mz-1y for patchwork@mira.cbaines.net; Sat, 30 Oct 2021 16:26:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mguvS-0001UK-Ts for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mguvS-0005eL-Lc for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mguvS-0001Dc-J5 for guix-patches@gnu.org; Sat, 30 Oct 2021 16:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51520] [PATCH 3/3] gnu: Add weechat-wee-slack. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 20:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51520 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51520@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 51520-submit@debbugs.gnu.org id=B51520.16356255294629 (code B ref 51520); Sat, 30 Oct 2021 20:26:02 +0000 Received: (at 51520) by debbugs.gnu.org; 30 Oct 2021 20:25:29 +0000 Received: from localhost ([127.0.0.1]:58507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mguuu-0001CW-PG for submit@debbugs.gnu.org; Sat, 30 Oct 2021 16:25:29 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:54822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mguuk-0001Bp-Py for 51520@debbugs.gnu.org; Sat, 30 Oct 2021 16:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lpdC+e+zGIncMJuSc9BMhq7mNIccW605dT4HvN7oAuo=; b=i6uSIEOeqF0BthJsuXg0lY3heg wrLX6RscryOTLXlKIl0FwBnPH4+f5L7giIC93vaWS1lx3MQxD2SCBmOXefjaqUxbbiiLdESzQlMTB ldJeHVT+/cuiO86mmJRqlJOwFlXTcnOS9NSb/YyST6rZFEfRC1uWjD1bE/0NejZccUTguaARrABFB 4lLvpeiC16wYa91siL43cIRso8W31fqTpwSfJh929ybTofBKNZSeBgfueUMC+0al5MIi/V+oCv1QS QAgJPgNSjmvnmyTb8jJW6nQrOjUyBdkvXZYQ6HdeZnviBxI+/SeqjJ+yewzWndGoBqtEalltSi/tP gajAKLlA==; Received: from [192.168.2.1] (port=59960 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1mguui-0003Cr-FF; Sun, 31 Oct 2021 01:55:16 +0530 From: Arun Isaac Date: Sun, 31 Oct 2021 01:55:14 +0530 Message-Id: <20211030202514.18639-3-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211030202514.18639-1-arunisaac@systemreboot.net> References: <20211030202514.18639-1-arunisaac@systemreboot.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/messaging.scm (weechat-wee-slack): New variable. --- gnu/packages/messaging.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index e684c60c0c..60a9fc3033 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -3059,4 +3059,54 @@ (define-public weechat-matrix 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))) + ;;; messaging.scm ends here