guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#48091] [PATCH 11/11] gnu: Add tgcli.


From: Raghav Gururajan
Subject: [bug#48091] [PATCH 11/11] gnu: Add tgcli.
Date: Wed, 28 Apr 2021 19:19:34 -0400

* gnu/packages/telegram.scm (tgcli): New variable.
---
 gnu/packages/telegram.scm | 50 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm
index c4414287a7..6c1a2fac89 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,49 @@ 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 _
+             (invoke "pytest"))))))
+    (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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]