From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kOOVN7dP6l9tCgAA0tVLHw (envelope-from ) for ; Mon, 28 Dec 2020 21:35:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GCRoM7dP6l9FMAAAB5/wlQ (envelope-from ) for ; Mon, 28 Dec 2020 21:35:51 +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 8DD2194011C for ; Mon, 28 Dec 2020 21:35:51 +0000 (UTC) Received: from localhost ([::1]:37938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ku0BC-00057Y-AT for larch@yhetil.org; Mon, 28 Dec 2020 16:35:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ku0AQ-0004sM-EM for guix-patches@gnu.org; Mon, 28 Dec 2020 16:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ku0AP-0006BW-OQ 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 1ku0AP-0007NM-Lx for guix-patches@gnu.org; Mon, 28 Dec 2020 16:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45514] [PATCH 7/8] gnu: Add python-zulip. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Dec 2020 21:35:01 +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.160919124528276 (code B ref 45514); Mon, 28 Dec 2020 21:35:01 +0000 Received: (at 45514) by debbugs.gnu.org; 28 Dec 2020 21:34:05 +0000 Received: from localhost ([127.0.0.1]:37096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku09U-0007Li-6b for submit@debbugs.gnu.org; Mon, 28 Dec 2020 16:34:05 -0500 Received: from latitanza.investici.org ([82.94.249.234]:41233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ku09B-0007Jc-45 for 45514@debbugs.gnu.org; Mon, 28 Dec 2020 16:33:45 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4D4W544Rcpz8sg0; Mon, 28 Dec 2020 21:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1609191224; bh=MrGt4GIrCYTySSDE8IURL6hviHDwleeHNkcWMd+11Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pfF7ir5DNiCVT2Yzjr3UBHs/3v80b3zNYvbu41kUSLdyvHfmI278D0VuyYh4RyJJG DLUur1uxKUFqyjvD/btVubOmjW2zSqlQCSbva+sfQhbgYgHDTjv76UKJNRQdVBYVJf oBifI30PYFfb9vM8ZsANE9lryRFSmcW93juKrOI8= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4D4W542X5zz8sfw; Mon, 28 Dec 2020 21:33:44 +0000 (UTC) From: Giacomo Leidi Date: Mon, 28 Dec 2020 22:32:44 +0100 Message-Id: <20201228213245.12577-7-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-Type: text/plain; charset=UTF-8 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: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=autistici.org header.s=stigmate header.b=pfF7ir5D; 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: 8DD2194011C X-Spam-Score: -0.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: ErVic0uTeJ57 * gnu/packages/python-xyz.scm (python-zulip): New variable. --- gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8a00bebe3e..e25ebda63b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -23328,3 +23328,52 @@ the output of Python’s cProfile module and an alternative to using the standard library pstats module. It was originally inspired by RunSnakeRun. ") (license license:bsd-3))) + +(define-public python-zulip + (package + (name "python-zulip") + (version "0.7.1") + (source + (origin + ;; There is no source on Pypi. + (method git-fetch) + (uri + (git-reference + (url "https://github.com/zulip/python-zulip-api") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0da1ki1v252avy27j6d7snnc0gyq0xa9fypm3qdmxhw2w79d6q36")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'cd-to-zulip-dir + (lambda _ + (chdir "zulip") + #t)) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((test-zulip "../tools/test-zulip")) + (add-installed-pythonpath inputs outputs) + (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) + (patch-shebang test-zulip) + (invoke test-zulip))))))) + (propagated-inputs + `(("python-matrix-client" ,python-matrix-client) + ("python-pyopenssl" ,python-pyopenssl) + ("python-requests" ,python-requests) + ("python-six" ,python-six))) + (native-inputs + `(("python-cython" ,python-cython) + ("python-distro" ,python-distro) + ("python-pytest" ,python-pytest) + ("python-setuptools" ,python-setuptools))) + (home-page + "https://github.com/zulip/python-zulip-api") + (synopsis + "Zulip's API Python bindings") + (description + "This package provides Zulip's API Python bindings.") + (license license:asl2.0))) -- 2.29.2