From 36b6528bd0b17511d7e7d8ff0caa2d8793a2b70b Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 13 Nov 2020 01:27:08 +0300 Subject: gnu: Add python-pytelegrambotapi. * gnu/packages/python-xyz.scm (python-pytelegrambotapi): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 94494511d5..94fbc1f8f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -280,6 +280,39 @@ threads.") task of adding retry behavior to just about anything.") (license license:asl2.0))) +(define-public python-pytelegrambotapi + (package + (name "python-pytelegrambotapi") + (version "3.7.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eternnoir/pyTelegramBotAPI") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "tests" + (invoke "py.test"))) + #t))))) + (propagated-inputs + `(("python-requests" ,python-requests))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/eternnoir/pyTelegramBotAPI") + (synopsis "Python Telegram bot api") + (description "This package provides a simple, but extensible Python +implementation for the Telegram Bot API.") + (license license:gpl2))) + (define-public python-colorlog (package (name "python-colorlog") -- cgit v1.2.3