Skip to content

Commit

Permalink
dev-python/spotipy: new package; add version 2.19.0
Browse files Browse the repository at this point in the history
Bug: deepjyoti30/ytmdl#222
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
  • Loading branch information
xgqt committed Apr 5, 2022
1 parent 76de881 commit 7c43f31
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-python/spotipy/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST spotipy-2.19.0.tar.gz 102703 BLAKE2B bc132edb972236b43097c0bbc9d86932a3305d8bd3807e44e20767b123455950b8e01060efd83c87b3a162e329f5c48614205f131686af7f9312a44894a7f1e7 SHA512 fbaecd1a2cab3ef458d30de46cb89462021dfc3cfc85516d8bfe509af016a0b19af2f8de4f5cae36188b1ce1f5718c75edff0e71af2a87f4d720ee99d4541a6a
13 changes: 13 additions & 0 deletions dev-python/spotipy/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">

<pkgmetadata>
<maintainer type="person">
<email>xgqt@gentoo.org</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/plamere/spotipy/issues/</bugs-to>
<remote-id type="github">plamere/spotipy</remote-id>
</upstream>
</pkgmetadata>
48 changes: 48 additions & 0 deletions dev-python/spotipy/spotipy-2.19.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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..10} )

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}.tar.gz"

LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="examples"

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() {
# 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
}

0 comments on commit 7c43f31

Please sign in to comment.