From a70eb71d00a49666d4278117ec09ab404fe8347a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 28 Oct 2025 12:55:34 +0000 Subject: gnu: tldr: Move to textutils. * gnu/packages/python-xyz.scm (tldr, pythno-tldr): Move from here ... * gnu/packages/textutils.scm: ... to here. Change-Id: I678a9fd63960328dbcaf6a28a8868d3ce1e2aa23 --- gnu/packages/textutils.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'gnu/packages/textutils.scm') diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index c000c0596bc..60be5aee5af 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -25,6 +25,8 @@ ;;; Copyright © 2021 Simon Tournier ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2021 Bonface Munyoki Kilyungi +;;; Copyright © 2021 Tanguy Le Carrour +;;; Copyright © 2022, 2024 kiasoc5 ;;; Copyright © 2022 Gabriel Wicki ;;; Copyright © 2022 Greg Hogan ;;; Copyright © 2022 M @@ -32,8 +34,9 @@ ;;; Copyright © 2023 Reza Housseini ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2024 John Kehayias ;;; Copyright © 2024 Timotej Lazar -;;; Copyright © 2024-2024 Sharlatan Hellseher +;;; Copyright © 2024-2025 Sharlatan Hellseher ;;; Copyright © 2024, 2025 Ashish SHUKLA ;;; Copyright © 2024 Artyom V. Poptsov ;;; Copyright © 2025 John Khoo @@ -99,6 +102,7 @@ #:use-module (gnu packages ruby) #:use-module (gnu packages serialization) #:use-module (gnu packages slang) + #:use-module (gnu packages sphinx) #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) @@ -1169,6 +1173,48 @@ Eclipse and NetBeans. Completion information is typically specified in an XML file, but can even be dynamic.") (license license:bsd-3))) +(define-public tldr + (package + (name "tldr") + (version "3.4.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tldr-pages/tldr-python-client") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06rhpywaypqwakw8v187cdf52yl5c7fm19f1q7nbbsydbs0ndmb1")))) + (build-system pyproject-build-system) + (arguments + (list + ;; This test fails. It tries to open a network socket. + #:test-flags #~(list "-k" "not test_error_message") + #:phases + #~(modify-phases %standard-phases + (add-after 'build 'build-doc + (lambda _ + (invoke "make" "-C" "docs")))))) + (native-inputs + (list python-hatchling + python-pytest + python-sphinx-argparse)) + (inputs + (list python-colorama + python-termcolor + python-shtab)) + (home-page "https://github.com/tldr-pages/tldr-python-client") + (synopsis "Command-line client for tldr pages") + (description "This package provides the @code{tldr} command allowing users +to view @code{tldr} pages from a shell. The @code{tldr} pages are a community +effort to simplify the man pages with practical examples described in +@url{https://tldr.sh/}.") + (license license:expat))) + +(define-public python-tldr + (deprecated-package "python-tldr" tldr)) + (define-public txt2tags (package (name "txt2tags") -- cgit v1.3