app-text/tldr: add 3.3.0

- inline EPYTEST_DESELECT
- NOTE: test warning is already fixed at master
- NOTE: upstream added python3.1{1,2} support in this release

Signed-off-by: Filip Kobierski <fkobi@pm.me>
This commit is contained in:
Filip Kobierski 2025-02-01 19:38:56 +01:00
parent 1321ee7e14
commit 51b8f366d3
No known key found for this signature in database
GPG Key ID: 756535402AA9903A
2 changed files with 51 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST tldr-3.2.0.gh.tar.gz 16901 BLAKE2B 4cca5999e7c85b5f5b6e980150cfdabb034776ba5477309fc24d158effd2ef68d263d6cf75e01f3cf06d07ac2f1ab849300fff4907564e1b48728cb017834568 SHA512 1535979548b49cd8b0312f2cd11f69ba3f710e16a27c074dc5a8cb5617d7f343df30ba01a83388b460508ab519045140852767bfc8ff1189d612d71a3d35d76b
DIST tldr-3.3.0.gh.tar.gz 96931 BLAKE2B 78d499db16a13743b816501bad342958fafbdde282775a6f34f264e3adc974d2976f7ce1172805115a08e60e350624f642dfa81bf694403ab9e017418d65b96c SHA512 137560c401540ff1e747f443a3c0686ddba8c512772eadbff6b735aa9c20dd02a9c7b101b2238888daa20b2886dc4318bc7c1366d8b73f71dd2f797b1787b632

View File

@ -0,0 +1,50 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..12} )
inherit distutils-r1
DESCRIPTION="Python command line client for tldr pages"
HOMEPAGE="https://github.com/tldr-pages/tldr-python-client"
# sdist lacks some files.
SRC_URI="https://github.com/tldr-pages/tldr-python-client/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-python-client-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="man"
RDEPEND="
dev-python/colorama[${PYTHON_USEDEP}]
dev-python/shtab[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
!app-misc/tealdeer
"
BDEPEND="
man? (
dev-python/sphinx
dev-python/sphinx-argparse
)
"
EPYTEST_DESELECT=(
# violates network sandbox
tests/test_tldr.py::test_error_message
)
distutils_enable_tests pytest
src_prepare() {
use man || sed -i '/data_files/d' setup.py || die
distutils-r1_src_prepare
}
src_compile() {
use man && emake -C docs
distutils-r1_src_compile
}