blob: 5ad88d65f6d6663b54148a115858434fce57aef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 shell-completion sysroot
DESCRIPTION="Utility for fetching patchsets from public-inbox"
HOMEPAGE="https://pypi.org/project/b4/"
SRC_URI="https://git.kernel.org/pub/scm/utils/b4/b4.git/snapshot/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
>=dev-python/certifi-3024.7.22[${PYTHON_USEDEP}]
>=dev-python/cffi-2.0.0[${PYTHON_USEDEP}]
>=dev-python/charset-normalizer-3.4.6[${PYTHON_USEDEP}]
>=dev-python/dkimpy-1.1.8[${PYTHON_USEDEP}]
>=dev-python/dnspython-2.8[${PYTHON_USEDEP}]
>=dev-python/idna-3.11[${PYTHON_USEDEP}]
>=dev-python/liblore-0.8.1[${PYTHON_USEDEP}]
>=dev-python/patatt-0.7[${PYTHON_USEDEP}]
>=dev-python/pycparser-3.0[${PYTHON_USEDEP}]
>=dev-python/pynacl-1.6.2[${PYTHON_USEDEP}]
>=dev-python/requests-2.32.5[${PYTHON_USEDEP}]
>=dev-python/urllib3-2.6.3[${PYTHON_USEDEP}]
>=dev-python/pygit2-1.19.3[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/shtab[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# broken upstream
src/tests/test_packaging.py::test_public_modules_import_without_textual
)
python_compile_all() {
local shell
local -x PYTHONPATH="${S}/src:${S}/patatt/src"
for shell in bash zsh; do
sysroot_try_run_prefixed \
"${EPYTHON}" src/b4/command.py \
--print-completion "${shell}" > "${shell}".completion ||
die "Could not create completion for ${shell}"
done
}
python_install_all() {
einstalldocs
newbashcomp bash.completion b4
newzshcomp zsh.completion _b4
}
|