diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-08-06 18:05:19 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-08 23:02:33 +0100 |
| commit | 156df6681e1eba9b7db99da084b3512a3d4b0936 (patch) | |
| tree | 8d0869ba2e781167a4ba9cc06bc450e92f43571d /gnu/packages | |
| parent | 6d6620b4baccb871b62225fc5eb60e1f8b97b466 (diff) | |
gnu: python-telethon: Update to 1.44.0.
* gnu/packages/python-xyz.scm (python-telethon): Update to 1.44.0.
[arguments]{phases}: Add phase generate-tl-code.
[native-inputs]: Add python-hatchling.
Relates-to: guix/guix!10413
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8358c549765..39e921fce06 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -38720,7 +38720,7 @@ You can set the following @code{tcolor} arguments: | |||
| 38720 | (define-public python-telethon | 38720 | (define-public python-telethon |
| 38721 | (package | 38721 | (package |
| 38722 | (name "python-telethon") | 38722 | (name "python-telethon") |
| 38723 | (version "1.42.0") | 38723 | (version "1.44.0") |
| 38724 | (source | 38724 | (source |
| 38725 | (origin | 38725 | (origin |
| 38726 | (method git-fetch) | 38726 | (method git-fetch) |
| @@ -38729,10 +38729,23 @@ You can set the following @code{tcolor} arguments: | |||
| 38729 | (commit (string-append "v" version)))) | 38729 | (commit (string-append "v" version)))) |
| 38730 | (file-name (git-file-name name version)) | 38730 | (file-name (git-file-name name version)) |
| 38731 | (sha256 | 38731 | (sha256 |
| 38732 | (base32 "16xp5cwfv1ly25zcnnn0jgrmzpsl3yqzf92dfbnpyiy64j8wkh9l")))) | 38732 | (base32 "1y1bzna7gqs6ck4jmh2spm7s8frw0qs6p52v9ar6qbbk1h7yacip")))) |
| 38733 | (build-system pyproject-build-system) | 38733 | (build-system pyproject-build-system) |
| 38734 | (arguments | ||
| 38735 | (list | ||
| 38736 | #:phases | ||
| 38737 | #~(modify-phases %standard-phases | ||
| 38738 | (add-after 'build 'generate-tl-code | ||
| 38739 | (lambda _ | ||
| 38740 | ;; The custom hatchling build hook (hatch_build.py) generates | ||
| 38741 | ;; telethon/tl/{types,functions}.py only inside hatchling's | ||
| 38742 | ;; isolated build directory, but deletes them again. | ||
| 38743 | ;; Regenerate the same code here too for tests; see | ||
| 38744 | ;; readthedocs/developing/project-structure.rst. | ||
| 38745 | (invoke "python3" "setup.py" "gen")))))) | ||
| 38734 | (native-inputs | 38746 | (native-inputs |
| 38735 | (list python-pytest | 38747 | (list python-hatchling |
| 38748 | python-pytest | ||
| 38736 | python-pytest-asyncio | 38749 | python-pytest-asyncio |
| 38737 | python-pytest-trio | 38750 | python-pytest-trio |
| 38738 | python-setuptools)) | 38751 | python-setuptools)) |
