dev-python/spotipy: new package, add 2.20.0
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
86ba16d5b4
commit
fe6fa28827
3
dev-python/spotipy/Manifest
Normal file
3
dev-python/spotipy/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST spotipy-2.20.0.gh.tar.gz 103437 BLAKE2B 78b026b9de04b0115c5621345e4f4c0ee47a51980221c77da8754c54fc8c321a1826983ceb9bcf9c415690906f3b3ea4657243e6b5d351d3edb48084baeca292 SHA512 8b5d0704fa84974ea0728dda0fe89d021b7b1550b464026d2b087671102745c7edcab116246399dd97de42d9c0cc7411295297c328b301712b6536aa6a3cd6fd
|
||||
EBUILD spotipy-2.20.0.ebuild 1192 BLAKE2B d839df59c6d9ac90e70173d7a32952f4dbb4282eea73f84e5803f90340f3847147beaefdf13b2cbdee96cf73ee5e6abf0df6579dc092a15f3d9eb319f5d615b5 SHA512 7e2d1854285637805b3b5e92b6a21d7a05d3c96c4bb61e9941fee9cf3ac827e94a8ac810f1e520b1fbccfff77fa426a94e4640c38a9ab51dcee69154a5afae3e
|
||||
MISC metadata.xml 445 BLAKE2B d7069ccaf238efcb9b8a8a8d64737f266076c258b40b2e82728cb63f6db8726d18c654f4aa386c94e6fdc4ca308160957ab379f35484603b910fc5d834eaaf8b SHA512 802eeab008c447ecf43b045df6b69ea8321cff66a6ceb702e25c4bf23c891923c578abfffef1a3c83737d394f8c40b3c82f47d4178d2b9cc9a9ee3c253205dea
|
15
dev-python/spotipy/metadata.xml
Normal file
15
dev-python/spotipy/metadata.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">spotipy</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>paul@echonest.com</email>
|
||||
<name>@plamere</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
49
dev-python/spotipy/spotipy-2.20.0.ebuild
Normal file
49
dev-python/spotipy/spotipy-2.20.0.ebuild
Normal file
@ -0,0 +1,49 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A light weight Python library for the Spotify Web API"
|
||||
HOMEPAGE="https://spotipy.readthedocs.io"
|
||||
SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
SLOT="0"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/redis-py[${PYTHON_USEDEP}]
|
||||
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() {
|
||||
# Requires user credentials
|
||||
rm tests/integration/test_user_endpoints.py || die
|
||||
|
||||
# Requires a spotify client ID
|
||||
rm tests/integration/test_non_user_endpoints.py || die
|
||||
|
||||
# Needs 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() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
use examples && dodoc -r examples
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user