blob: 71532b24b8be498ea37697218a7fdac0b71f04fa (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 optfeature pypi
DESCRIPTION="A library for shell script-like programs in python"
HOMEPAGE="
https://plumbum.readthedocs.io/en/latest/
https://github.com/tomerfiliba/plumbum/
https://pypi.org/project/plumbum/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~riscv x86"
BDEPEND="
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Need sshd running
tests/test_remote.py
tests/test_utils.py
# Windows specific
tests/test_putty.py
# Needs sudo without password
tests/test_sudo.py
# Wrong assumptions about env handling
tests/test_env.py::TestEnv::test_change_env
tests/test_env.py::TestEnv::test_dictlike
tests/test_local.py::TestLocalPath::test_iterdir
)
src_prepare() {
sed -e '/addopts/d' -i pyproject.toml || die
distutils-r1_src_prepare
}
pkg_postinst() {
optfeature "remote commands via ssh" dev-python/paramiko
optfeature "progress bars in jupyter" dev-python/ipywidgets
optfeature "colored output in jupyter" dev-python/ipython
optfeature "images on the command line" dev-python/pillow
}
|