diff options
author | EuAndreh <eu@euandre.org> | 2023-09-23 07:12:09 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-09-23 07:12:09 -0300 |
commit | 20b9c432479d171d3d9c0cd1190543f6c53fbdc1 (patch) | |
tree | 501d82226f1180198b3396cab419877682968551 | |
parent | etc/nix/configuration.nix: Increase mailbox_size_limit above message_size_limit (diff) | |
download | dotfiles-20b9c432479d171d3d9c0cd1190543f6c53fbdc1.tar.gz dotfiles-20b9c432479d171d3d9c0cd1190543f6c53fbdc1.tar.xz |
etc/guix/home.scm: Add WIP packaging of "tg"
-rw-r--r-- | etc/guix/home.scm | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm index fbfbdf2..ae0c1a4 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -12,6 +12,8 @@ (gnu home services xdg) (guix build-system cmake) (guix build-system gnu) + (guix build-system pyproject) + (guix build-system python) (guix build-system trivial) (guix download) (guix git-download) @@ -294,6 +296,65 @@ libraries/software/operating systems ANSI Common Lisp standard."#) (license licenses:public-domain))) +(define python-telegram-text + (package + (name "python-telegram-text") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri + (pypi-uri "telegram_text" version)) + (sha256 + (base32 "1ayrcfr2v9jzwcpdsl6aahl9mbslx4rbsn3fsqvvw8p4fikxqrxc")))) + (build-system pyproject-build-system) + (home-page "https://telegram-text.alinsky.tech") + (synopsis "Python module for Telegram markup") + (description #"- + This module provides a rich list of components to build any possible + markup fast and render it to specific HTML or @code{MarkdownV2} formats."#) + (license licenses:expat))) + +(define python-telegram + (package + (name "python-telegram") + (version "0.15.0") + (source + (origin + (method url-fetch) + (uri + (pypi-uri name version)) + (sha256 + (base32 "0w61z0915mixxkcvwk22az032j3y46gkg8sadi5fqqb04li8vb9m")))) + (build-system pyproject-build-system) + (propagated-inputs + (list #;python-telegram-text)) + (home-page "https://github.com/alexander-akhmetov/python-telegram") + (synopsis "Python library to help you build your own Telegram clients") + (description #"- + Python API for the @url{https://github.com/tdlib/td, tdlib} library. It + helps you build your own Telegram clients."#) + (license licenses:expat))) + +(define tg + (package + (name "tg") + (version "0.19.0") + (source + (origin + (method url-fetch) + (uri + (pypi-uri name version)) + (sha256 + (base32 "1jv9npas46pwl7v31xi7rlgm7bri3ydwqqq6wpgi13pp3byx46ig")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-telegram)) + (home-page "https://github.com/paul-nameless/tg") + (synopsis "Terminal Telegram client") + (description "FIXME") + (license licenses:unlicense))) + (define (slurp name) (string-trim-both (call-with-input-file @@ -786,6 +847,7 @@ libraries/software/operating systems apk-tools ;; neosurf hunspell-iconv + ;; tg (hunspell-dictionary-utf8 "en") (hunspell-dictionary-utf8 "pt") (hunspell-dictionary-utf8 "fr") |