blob: bf5bbc2a7c6abe1744cf3d599d66d56ca8246d32 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Python module for downloading files"
HOMEPAGE="http://urlgrabber.baseurl.org https://github.com/rpm-software-management/urlgrabber"
SRC_URI="https://github.com/rpm-software-management/${PN}/archive/${PN}-${PV//./-}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${PN}-${PV//./-}"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 x86"
# Entire testsuite relies on connecting to the i'net
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="
dev-python/pycurl[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
"
BDEPEND="dev-python/six[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}/${P}-skip-test_range.patch"
"${FILESDIR}/${P}-test-mirror-set-thread-daemon.patch"
)
python_test() {
URLGRABBER_EXT_DOWN="${S}/scripts/urlgrabber-ext-down" \
PYTHON_PATH="${S}" \
"${EPYTHON}" test/runtests.py -v 2 || die "Tests failed under ${EPYTHON}"
}
|