Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac.paragon@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/maestral/
Date: Wed, 29 Dec 2021 12:08:06
Message-Id: 1640779643.ca306a9311879bbe98993d66dfb98bd7fc36c679.viorel_munteanu@gentoo
1 commit: ca306a9311879bbe98993d66dfb98bd7fc36c679
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Wed Dec 29 12:06:15 2021 +0000
4 Commit: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
5 CommitDate: Wed Dec 29 12:07:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca306a93
7
8 net-misc/maestral: fix deps and tests
9
10 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
11
12 net-misc/maestral/maestral-1.5.2.ebuild | 19 +++++++++++++------
13 1 file changed, 13 insertions(+), 6 deletions(-)
14
15 diff --git a/net-misc/maestral/maestral-1.5.2.ebuild b/net-misc/maestral/maestral-1.5.2.ebuild
16 index 6ce8dbcf6..54d55b1bd 100644
17 --- a/net-misc/maestral/maestral-1.5.2.ebuild
18 +++ b/net-misc/maestral/maestral-1.5.2.ebuild
19 @@ -29,22 +29,29 @@ DEPEND="
20 >=dev-python/Pyro5-5.10[${PYTHON_USEDEP}]
21 >=dev-python/requests-2.6.2[${PYTHON_USEDEP}]
22 >=dev-python/sdnotify-0.3.2[${PYTHON_USEDEP}]
23 - >=dev-python/setuptools-41.0.0[${PYTHON_USEDEP}]
24 >=dev-python/survey-3.4.3[${PYTHON_USEDEP}]
25 <dev-python/survey-4.0.0[${PYTHON_USEDEP}]
26 >=dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
27 dev-python/wheel[${PYTHON_USEDEP}]
28 - python_targets_python3_8? ( dev-python/importlib_metadata[${PYTHON_USEDEP}] )
29 + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_8)
30 "
31 RDEPEND="${DEPEND}"
32 BDEPEND="
33 - test? ( dev-python/pytest[${PYTHON_USEDEP}] )
34 + test? ( dev-python/pytest-benchmark[${PYTHON_USEDEP}] )
35 "
36
37 -# Skipped: Requires auth token
38 -RESTRICT=test
39 +distutils_enable_tests pytest
40
41 -distutils_enable_tests setup.py
42 +python_prepare_all()
43 +{
44 + # this test requires systemd
45 + sed -i -e 's/test_autostart/_&/' tests/offline/test_cli.py || die
46 +
47 + # this test requires network
48 + sed -i -e 's/test_check_for_updates/_&/' tests/offline/test_main.py || die
49 +
50 + distutils-r1_python_prepare_all
51 +}
52
53 pkg_postinst()
54 {