diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-03-22 21:12:02 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-03-22 22:17:15 +0100 |
commit | d2a0987166cafb44253c860d21845ef25f2578b7 (patch) | |
tree | a22cc8d69979265d53cb3376d37388cf52c72b04 /net-misc | |
parent | net-misc/gallery-dl: drop old 1.26.7 (diff) | |
download | gentoo-d2a0987166cafb44253c860d21845ef25f2578b7.tar.gz gentoo-d2a0987166cafb44253c860d21845ef25f2578b7.tar.bz2 gentoo-d2a0987166cafb44253c860d21845ef25f2578b7.zip |
net-misc/gallery-dl: use unittest runner; disable net
Closes: https://bugs.gentoo.org/927526
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/gallery-dl/gallery-dl-1.26.8.ebuild | 11 | ||||
-rw-r--r-- | net-misc/gallery-dl/gallery-dl-9999.ebuild | 11 |
2 files changed, 17 insertions, 5 deletions
diff --git a/net-misc/gallery-dl/gallery-dl-1.26.8.ebuild b/net-misc/gallery-dl/gallery-dl-1.26.8.ebuild index 736c8bce293d..310c7066bc74 100644 --- a/net-misc/gallery-dl/gallery-dl-1.26.8.ebuild +++ b/net-misc/gallery-dl/gallery-dl-1.26.8.ebuild @@ -25,14 +25,19 @@ fi LICENSE="GPL-2" SLOT="0" -PROPERTIES="test_network" # Tests require network access. -RESTRICT="test" RDEPEND=" >=dev-python/requests-2.11.0[${PYTHON_USEDEP}] " -distutils_enable_tests setup.py +distutils_enable_tests unittest + +src_prepare() { + # Tests against real servers, some tests always fail and some are subject to change. + rm test/test_results.py || die + + distutils-r1_src_prepare +} python_compile_all() { emake PYTHON="${EPYTHON}" data/completion/{,_}gallery-dl man diff --git a/net-misc/gallery-dl/gallery-dl-9999.ebuild b/net-misc/gallery-dl/gallery-dl-9999.ebuild index b8a8623c53a8..fc74f32338d2 100644 --- a/net-misc/gallery-dl/gallery-dl-9999.ebuild +++ b/net-misc/gallery-dl/gallery-dl-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -32,7 +32,14 @@ RDEPEND=" >=dev-python/requests-2.11.0[${PYTHON_USEDEP}] " -distutils_enable_tests setup.py +distutils_enable_tests unittest + +src_prepare() { + # Tests against real servers, some tests always fail and some are subject to change. + rm test/test_results.py || die + + distutils-r1_src_prepare +} python_compile_all() { emake PYTHON="${EPYTHON}" data/completion/{,_}gallery-dl man |