unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 48091@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#48091] [PATCH v7 10/10] gnu: Add tgcli.
Date: Sat,  1 May 2021 13:21:26 -0400	[thread overview]
Message-ID: <20210501172126.28033-10-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210501172126.28033-1-rg@raghavgururajan.name>

* 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 e6bfe6c4f2..6f77482117 100644
--- a/gnu/packages/telegram.scm
+++ b/gnu/packages/telegram.scm
@@ -49,6 +49,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)
@@ -66,6 +69,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
@@ -783,3 +787,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 them 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





  parent reply	other threads:[~2021-05-01 17:23 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 23:17 [bug#48091] [PATCH 0/11]: TgCli Raghav Gururajan via Guix-patches via
2021-04-28 23:19 ` [bug#48091] [PATCH 01/11] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 02/11] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 03/11] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 04/11] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 05/11] gnu: python-nltk: Add missing inputs Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 06/11] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 07/11] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 08/11] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 09/11] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 10/11] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-04-28 23:19   ` [bug#48091] [PATCH 11/11] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-04-29  7:05     ` Maxime Devos
2021-04-30 11:40       ` Raghav Gururajan via Guix-patches via
2021-04-30 11:34 ` [bug#48091] [PATCH v2 01/11] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 02/11] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 03/11] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 04/11] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 05/11] gnu: python-nltk: Add missing inputs Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 06/11] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-04-30 12:55     ` Maxime Devos
2021-04-30 13:15       ` Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 07/11] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 08/11] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-04-30 14:04     ` Maxime Devos
2021-04-30 14:40       ` Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 09/11] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 10/11] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-04-30 11:34   ` [bug#48091] [PATCH v2 11/11] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-04-30 13:13 ` [bug#48091] [PATCH v3 01/11] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 02/11] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 03/11] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 04/11] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 05/11] gnu: python-nltk: Add missing inputs Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 06/11] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 07/11] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 08/11] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 09/11] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 10/11] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-04-30 13:13   ` [bug#48091] [PATCH v3 11/11] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-04-30 13:32 ` [bug#48091] [PATCH v4 01/11] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 02/11] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 03/11] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 04/11] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 05/11] gnu: python-nltk: Add missing inputs Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 06/11] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 07/11] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 08/11] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 09/11] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 10/11] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-04-30 13:32   ` [bug#48091] [PATCH v4 11/11] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-04-30 14:38 ` [bug#48091] [PATCH v5 01/11] gnu: telegram-desktop: Update to 2.7.3 Raghav Gururajan via Guix-patches via
2021-04-30 14:38 ` [bug#48091] [PATCH v5 01/10] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 02/10] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 03/10] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 04/10] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 05/10] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 06/10] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 07/10] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 08/10] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 09/10] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-04-30 14:38   ` [bug#48091] [PATCH v5 10/10] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-05-01 15:05 ` [bug#48091] [PATCH v6 01/10] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 02/10] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 03/10] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 04/10] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 05/10] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 06/10] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 07/10] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 08/10] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 09/10] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-05-01 15:05   ` [bug#48091] [PATCH v6 10/10] gnu: Add tgcli Raghav Gururajan via Guix-patches via
2021-05-01 17:21 ` [bug#48091] [PATCH v7 01/10] gnu: Add python-colorful Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 02/10] gnu: Add python-yaspin Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 03/10] gnu: Add python-pytest-click Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 04/10] gnu: python-nltk: Update to 3.6.2 Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 05/10] gnu: Add python-nltk@3.4 Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 06/10] gnu: Add python-lunr Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 07/10] gnu: Add python-mkdocs Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 08/10] gnu: Add python-pymdown-extensions Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` [bug#48091] [PATCH v7 09/10] gnu: Add python-mkdocs-material Raghav Gururajan via Guix-patches via
2021-05-01 17:21   ` Raghav Gururajan via Guix-patches via [this message]
2021-05-02 13:09 ` bug#48091: (no subject) Raghav Gururajan via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210501172126.28033-10-rg@raghavgururajan.name \
    --to=guix-patches@gnu.org \
    --cc=48091@debbugs.gnu.org \
    --cc=rg@raghavgururajan.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).