Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/spotipy/
Date: Mon, 07 Feb 2022 20:35:13
Message-Id: 1644227519.14007fd01aae28b682a6e1ec83b921fb10746167.arthurzam@gentoo
1 commit: 14007fd01aae28b682a6e1ec83b921fb10746167
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 7 09:48:06 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 09:51:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14007fd0
7
8 dev-python/spotipy: bump to 2.19.0
9
10 I'm bumping this as a dependency for spotify_dl, if no one whishes to
11 maintain it I may consider it in the future.
12
13 Package-Manager: Portage-3.0.30, Repoman-3.0.3
14 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
15
16 dev-python/spotipy/Manifest | 1 +
17 dev-python/spotipy/spotipy-2.19.0.ebuild | 50 ++++++++++++++++++++++++++++++++
18 2 files changed, 51 insertions(+)
19
20 diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest
21 index e45578759..67f3e6da3 100644
22 --- a/dev-python/spotipy/Manifest
23 +++ b/dev-python/spotipy/Manifest
24 @@ -1 +1,2 @@
25 DIST spotipy-2.17.1.tar.gz 100524 BLAKE2B 3c020276f245b03a5a2052b49e353ead6aca69c510ddaeef732aa0ecd835abccf49fde58ac26bd5c64f9ea7afa9b6772a36abbc3d48a076559c6fb96e465ce7d SHA512 39dbd089fe98896387f805e6cb487c38543c0777aaf73cacc805d5f6f074c07ee5a5dd7adfe7925cdc717e46b5fee0e9151265fd4f792b901040e107cb8c515c
26 +DIST spotipy-2.19.0.tar.gz 102703 BLAKE2B bc132edb972236b43097c0bbc9d86932a3305d8bd3807e44e20767b123455950b8e01060efd83c87b3a162e329f5c48614205f131686af7f9312a44894a7f1e7 SHA512 fbaecd1a2cab3ef458d30de46cb89462021dfc3cfc85516d8bfe509af016a0b19af2f8de4f5cae36188b1ce1f5718c75edff0e71af2a87f4d720ee99d4541a6a
27
28 diff --git a/dev-python/spotipy/spotipy-2.19.0.ebuild b/dev-python/spotipy/spotipy-2.19.0.ebuild
29 new file mode 100644
30 index 000000000..a941f3883
31 --- /dev/null
32 +++ b/dev-python/spotipy/spotipy-2.19.0.ebuild
33 @@ -0,0 +1,50 @@
34 +# Copyright 2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="A light weight Python library for the Spotify Web API"
44 +HOMEPAGE="https://spotipy.readthedocs.io
45 + https://github.com/plamere/spotipy"
46 +SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +IUSE="examples"
49 +
50 +LICENSE="MIT"
51 +KEYWORDS="~amd64"
52 +SLOT="0"
53 +
54 +RDEPEND="
55 + dev-python/requests[${PYTHON_USEDEP}]
56 + dev-python/six[${PYTHON_USEDEP}]
57 + dev-python/urllib3[${PYTHON_USEDEP}]
58 +"
59 +
60 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
61 +
62 +distutils_enable_sphinx docs
63 +distutils_enable_tests pytest
64 +
65 +python_prepare_all() {
66 + # this test requires user credentials
67 + rm tests/integration/test_user_endpoints.py || die
68 +
69 + # this test requires a spotify client ID
70 + rm tests/integration/test_non_user_endpoints.py || die
71 +
72 + # need internet access
73 + sed -i -e 's:test_spotify_client_credentials_get_access_token:_&:' \
74 + tests/unit/test_oauth.py || die
75 +
76 + distutils-r1_python_prepare_all
77 +}
78 +
79 +python_install_all() {
80 + use examples && dodoc -r examples
81 +
82 + distutils-r1_python_install_all
83 +}