From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id d9r9LepP6l8bfAAA0tVLHw (envelope-from ) for ; Mon, 28 Dec 2020 21:36:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0BiTKepP6l+0JAAAbx9fmQ (envelope-from ) for ; Mon, 28 Dec 2020 21:36:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4BD7594011C for ; Mon, 28 Dec 2020 21:36:42 +0000 (UTC) Received: from localhost ([::1]:38188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ku0C0-0005L9-Nz for larch@yhetil.org; Mon, 28 Dec 2020 16:36:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ku0AQ-0004sP-ET for guix-patches@gnu.org; Mon, 28 Dec 2020 16:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ku0AQ-0006C5-6B for guix-patches@gnu.org; Mon, 28 Dec 2020 16:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ku0AQ-0007NU-4O for guix-patches@gnu.org; Mon, 28 Dec 2020 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45514] [PATCH 8/8] gnu: Add zulip-term. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Dec 2020 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45514 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45514@debbugs.gnu.org Received: via spool by 45514-submit@debbugs.gnu.org id=B45514.160919124528284 (code B ref 45514); Mon, 28 Dec 2020 21:35:02 +0000 Received: (at 45514) by debbugs.gnu.org; 28 Dec 2020 21:34:05 +0000 Received: from localhost ([127.0.0.1]:37099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku09V-0007M1-1x for submit@debbugs.gnu.org; Mon, 28 Dec 2020 16:34:05 -0500 Received: from latitanza.investici.org ([82.94.249.234]:26931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku09B-0007Jl-JK for 45514@debbugs.gnu.org; Mon, 28 Dec 2020 16:33:49 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4D4W550bmHz8sgN; Mon, 28 Dec 2020 21:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1609191225; bh=362ntNUgLiXYO4nLOkeMrR5hToVgjPGNrRrtPOKMzjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/iFzX8CLtSYJX33jF+m62PgLSkRiK3DJG0q4uCaiURzVn5+B4riCLNP5kmpovb36 JjNVkdJmApwo/SpED2w0Wo5euSDoCBdjskSaZHWwu6crt+dIFatCg4344ZZFg/PgH2 /+71nLkx+PjwLGNP+t7CXgexdIJnt1lcd1pegwj8= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4D4W545cKjz8sfw; Mon, 28 Dec 2020 21:33:44 +0000 (UTC) From: Giacomo Leidi Date: Mon, 28 Dec 2020 22:32:45 +0100 Message-Id: <20201228213245.12577-8-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228213245.12577-1-goodoldpaul@autistici.org> References: <20201228213245.12577-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Cc: Giacomo Leidi Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=autistici.org header.s=stigmate header.b=Q/iFzX8C; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4BD7594011C X-Spam-Score: 3.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: xgosjbGYvAp2 * gnu/packages/xml.scm (python-lxml-for-zulip-term): New variable; * gnu/packages/messaging.scm (zulip-term): New variable. --- gnu/packages/messaging.scm | 60 ++++++++++++++++++++++++++++++++++++++ gnu/packages/xml.scm | 13 +++++++++ 2 files changed, 73 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 1393843e57..5416ada2a0 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -2441,4 +2441,64 @@ as phones, embedded computers or microcontrollers.") ;; Dual licensed. (license (list license:epl1.0 license:edl1.0)))) +(define-public zulip-term + (package + (name "zulip-term") + (version "0.5.2") + (source + (origin + ;; Pypi package doesn't ship tests. + (method git-fetch) + (uri + (git-reference + (url "https://github.com/zulip/zulip-terminal") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xhhy3v4wck74a83avil0rnmsi2grrh03cww19n5mv80p2q1cjmf")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete failing tests. + (delete-file "tests/cli/test_run.py") + (substitute* "setup.py" + (("\\=\\=1\\.7") ">=1.7") + (("\\=\\=2\\.5") ">=2.5")) + #t)))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "pytest") + #t)))))) + (propagated-inputs + `(("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-dateutil" ,python-dateutil) + ("python-lxml" ,python-lxml-for-zulip-term) + ("python-urwid" ,python-urwid) + ("python-urwid-readline" ,python-urwid-readline) + ("python-zulip" ,python-zulip))) + (native-inputs + `(("python-distro" ,python-distro) + ("python-flake8" ,python-flake8) + ("python-flake8-continuation" + ,python-flake8-continuation) + ("python-flake8-quotes" ,python-flake8-quotes) + ("python-isort" ,python-isort) + ("python-mypy" ,python-mypy) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-mock" ,python-pytest-mock) + ("python-snakeviz" ,python-snakeviz) + ("python-zipp" ,python-zipp))) + (home-page + "https://github.com/zulip/zulip-terminal") + (synopsis "Zulip's official terminal client") + (description "Zulip's official terminal client") + (license license:asl2.0))) + ;;; messaging.scm ends here diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 9dc37addf4..847a4e9174 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -2323,3 +2323,16 @@ XML data to JSON and other formats.") (description "This package provides a Python library to convert XML to @code{OrderedDict}.") (license license:expat))) + +;; This is only for zulip-term +(define-public python-lxml-for-zulip-term + (package + (inherit python-lxml) + (version "4.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lxml" version)) + (sha256 + (base32 + "1xhx76hr1w3lllfcg9a01f2y0zwyf59ijnvlh08299mjh8b3mhfd")))))) -- 2.29.2