From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oJE1OXcDjGCHYAEAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 15:17:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uLvyNHcDjGBBCwAA1q6Kng (envelope-from ) for ; Fri, 30 Apr 2021 13:17:43 +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 AFFD324C76 for ; Fri, 30 Apr 2021 15:17:43 +0200 (CEST) Received: from localhost ([::1]:34750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcT1Z-0001rm-Fx for larch@yhetil.org; Fri, 30 Apr 2021 09:17:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcSyC-0006Fh-Am for guix-patches@gnu.org; Fri, 30 Apr 2021 09:14:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcSy6-0004cR-C4 for guix-patches@gnu.org; Fri, 30 Apr 2021 09:14:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcSy6-0000Kl-7a for guix-patches@gnu.org; Fri, 30 Apr 2021 09:14:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48091] [PATCH v3 11/11] gnu: Add tgcli. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Apr 2021 13:14:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48091 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48091@debbugs.gnu.org Cc: Raghav Gururajan Received: via spool by 48091-submit@debbugs.gnu.org id=B48091.16197884451275 (code B ref 48091); Fri, 30 Apr 2021 13:14:06 +0000 Received: (at 48091) by debbugs.gnu.org; 30 Apr 2021 13:14:05 +0000 Received: from localhost ([127.0.0.1]:57836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcSy4-0000KH-TT for submit@debbugs.gnu.org; Fri, 30 Apr 2021 09:14:05 -0400 Received: from out0.migadu.com ([94.23.1.103]:57117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcSxq-0000IH-3g for 48091@debbugs.gnu.org; Fri, 30 Apr 2021 09:13:50 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1619788429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lUHR+reTNt6Q/J8siRuEYf4yGq7d6HXt25E0/IvRHXk=; b=blI9UmBYIHNHt40H/7xabDb5oJQqdFcvMgcMLulTZ1EXWH6doHQV2BvUivxP8QsUEgt0NE nlDeR0yfU6f9IBDL34bcOU3LRV4DEnfKt7MMRSCbdWCjXnynEem5DYJMptHRhP1VPUcwCH 2aGnDgLHOzT7UwBvTLA8YIzjEEvzQLHY0I9bqLGqMKfLc8d2E4Kb2b+D7MoMkvw2f1OUEi 8oEXGaGUj82N+JC43ETjdB0zC6/ugUpu3Kcs4m0RupcpYSiJBCur9BUqGKe5lzOMP4zz7W AipOiLdd3G9AUyHM6AwjYSnF6Qc0U7uLhCSDaFw2VJnXTnnWyKB0ClgrjrN2Dw== Date: Fri, 30 Apr 2021 09:13:36 -0400 Message-Id: <20210430131336.8271-11-rg@raghavgururajan.name> In-Reply-To: <20210430131336.8271-1-rg@raghavgururajan.name> References: <20210430131336.8271-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: rg@raghavgururajan.name 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: AFFD324C76 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: +bTw9jj5/UtL * gnu/packages/telegram.scm (tgcli): New variable. --- gnu/packages/telegram.scm | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index c4414287a7..7d98c5874e 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -50,6 +50,9 @@ #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-check) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages textutils) @@ -68,6 +71,7 @@ #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) + #:use-module (guix build-system python) #:use-module (guix build-system qt)) (define-public webrtc-for-telegram-desktop @@ -813,3 +817,51 @@ formerly a part of telegram-cli, but now being maintained separately.") (description "TG is the command-line interface for Telegram Messenger.") (home-page "https://github.com/vysheng/tg") (license license:gpl2+)))) + +(define-public tgcli + (package + (name "tgcli") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/erayerdin/tgcli") + (commit (string-append "v" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "082zim7rh4r8qyscqimjh2sz7998vv9j1i2y2wwz2rgrlhkhly5r")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Test requirements referes to specific versions of packages, + ;; which are too old. So we patch to refer to any later versions. + (add-after 'unpack 'patch-test-requirements + (lambda _ + (substitute* "dev.requirements.txt" + (("==") ">=")))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "tests"))))))) + (native-inputs + `(("coveralls" ,python-coveralls) + ("pytest" ,python-pytest) + ("pytest-click" ,python-pytest-click) + ("pytest-cov" ,python-pytest-cov) + ("mkdocs" ,python-mkdocs) + ("mkdocs-material" ,python-mkdocs-material) + ("requests-mock" ,python-requests-mock))) + (propagated-inputs + `(("click" ,python-click) + ("colorful" ,python-colorful) + ("requests" ,python-requests) + ("yaspin" ,python-yaspin))) + (home-page "https://tgcli.readthedocs.io") + (synopsis "Telegram Terminal Application") + (description "TgCli is a telegram client to automate repetitive tasks.") + (license license:asl2.0))) -- 2.31.1