mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-python/spotipy: bump to 2.19.0
I'm bumping this as a dependency for spotify_dl, if no one whishes to maintain it I may consider it in the future. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
This commit is contained in:
50
dev-python/spotipy/spotipy-2.19.0.ebuild
Normal file
50
dev-python/spotipy/spotipy-2.19.0.ebuild
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A light weight Python library for the Spotify Web API"
|
||||
HOMEPAGE="https://spotipy.readthedocs.io
|
||||
https://github.com/plamere/spotipy"
|
||||
SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# this test requires user credentials
|
||||
rm tests/integration/test_user_endpoints.py || die
|
||||
|
||||
# this test requires a spotify client ID
|
||||
rm tests/integration/test_non_user_endpoints.py || die
|
||||
|
||||
# need internet access
|
||||
sed -i -e 's:test_spotify_client_credentials_get_access_token:_&:' \
|
||||
tests/unit/test_oauth.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user