Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
DESCRIPTION="Official Python API client for Discogs" |
10 |
DESCRIPTION="Official Python API client for Discogs" |
11 |
HOMEPAGE="http://github.com/discogs/discogs_client http://pypi.python.org/pypi/discogs-client" |
11 |
HOMEPAGE="http://github.com/discogs/discogs_client http://pypi.python.org/pypi/discogs-client" |
12 |
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
|
|
13 |
SRC_URI="https://github.com/discogs/${PN/-/_}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
12 |
SRC_URI="https://github.com/discogs/${PN/-/_}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
14 |
|
13 |
|
15 |
LICENSE="BSD-2" |
14 |
LICENSE="BSD-2" |
Lines 17-33
Link Here
|
17 |
KEYWORDS="~amd64 ~x86" |
16 |
KEYWORDS="~amd64 ~x86" |
18 |
|
17 |
|
19 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
18 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
20 |
dev-python/requests[${PYTHON_USEDEP}]" |
19 |
dev-python/requests[${PYTHON_USEDEP}] |
|
|
20 |
dev-python/oauth2[${PYTHON_USEDEP}]" |
21 |
RDEPEND="" |
21 |
RDEPEND="" |
22 |
|
22 |
|
23 |
S="${WORKDIR}"/${P/-/_} |
23 |
S="${WORKDIR}"/${P/-/_} |
24 |
|
24 |
|
25 |
PATCHES=( "${FILESDIR}"/README.patch ) |
|
|
26 |
|
27 |
python_test() { |
25 |
python_test() { |
28 |
if "${PYTHON}" test_discogs_client.py; then |
26 |
if "${PYTHON}" -m unittest discover; then |
29 |
einfo "tests passed under ${EPYTHON}" |
27 |
einfo "tests passed under ${EPYTHON}" |
30 |
else |
28 |
else |
31 |
die "Tests failed under ${EPYTHON}" |
29 |
die "Tests failed under ${EPYTHON}" |
32 |
fi |
30 |
fi |
33 |
} |
31 |
} |