Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/spotipy/
Date: Tue, 05 Apr 2022 13:12:26
Message-Id: 1649159725.7c43f3153f726f05ae946a61afbf834ba5261be5.xgqt@gentoo
1 commit: 7c43f3153f726f05ae946a61afbf834ba5261be5
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 3 21:37:07 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 5 11:55:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c43f315
7
8 dev-python/spotipy: new package; add version 2.19.0
9
10 Bug: https://github.com/deepjyoti30/ytmdl/issues/222
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 dev-python/spotipy/Manifest | 1 +
14 dev-python/spotipy/metadata.xml | 13 +++++++++
15 dev-python/spotipy/spotipy-2.19.0.ebuild | 48 ++++++++++++++++++++++++++++++++
16 3 files changed, 62 insertions(+)
17
18 diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest
19 new file mode 100644
20 index 000000000000..12c83ee2269b
21 --- /dev/null
22 +++ b/dev-python/spotipy/Manifest
23 @@ -0,0 +1 @@
24 +DIST spotipy-2.19.0.tar.gz 102703 BLAKE2B bc132edb972236b43097c0bbc9d86932a3305d8bd3807e44e20767b123455950b8e01060efd83c87b3a162e329f5c48614205f131686af7f9312a44894a7f1e7 SHA512 fbaecd1a2cab3ef458d30de46cb89462021dfc3cfc85516d8bfe509af016a0b19af2f8de4f5cae36188b1ce1f5718c75edff0e71af2a87f4d720ee99d4541a6a
25
26 diff --git a/dev-python/spotipy/metadata.xml b/dev-python/spotipy/metadata.xml
27 new file mode 100644
28 index 000000000000..d6cea39e5dcb
29 --- /dev/null
30 +++ b/dev-python/spotipy/metadata.xml
31 @@ -0,0 +1,13 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
34 +
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>xgqt@g.o</email>
38 + <name>Maciej Barć</name>
39 + </maintainer>
40 + <upstream>
41 + <bugs-to>https://github.com/plamere/spotipy/issues/</bugs-to>
42 + <remote-id type="github">plamere/spotipy</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/spotipy/spotipy-2.19.0.ebuild b/dev-python/spotipy/spotipy-2.19.0.ebuild
47 new file mode 100644
48 index 000000000000..91857474e8f3
49 --- /dev/null
50 +++ b/dev-python/spotipy/spotipy-2.19.0.ebuild
51 @@ -0,0 +1,48 @@
52 +# Copyright 2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +DISTUTILS_USE_PEP517=setuptools
58 +PYTHON_COMPAT=( python3_{8..10} )
59 +
60 +inherit distutils-r1
61 +
62 +DESCRIPTION="A light weight Python library for the Spotify Web API"
63 +HOMEPAGE="https://spotipy.readthedocs.io"
64 +SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
65 +
66 +LICENSE="MIT"
67 +KEYWORDS="~amd64 ~x86"
68 +SLOT="0"
69 +IUSE="examples"
70 +
71 +RDEPEND="
72 + dev-python/requests[${PYTHON_USEDEP}]
73 + dev-python/six[${PYTHON_USEDEP}]
74 + dev-python/urllib3[${PYTHON_USEDEP}]
75 +"
76 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
77 +
78 +distutils_enable_sphinx docs
79 +distutils_enable_tests pytest
80 +
81 +python_prepare_all() {
82 + # Requires user credentials
83 + rm tests/integration/test_user_endpoints.py || die
84 +
85 + # Requires a spotify client ID
86 + rm tests/integration/test_non_user_endpoints.py || die
87 +
88 + # Needs internet access
89 + sed -i -e 's:test_spotify_client_credentials_get_access_token:_&:' \
90 + tests/unit/test_oauth.py || die
91 +
92 + distutils-r1_python_prepare_all
93 +}
94 +
95 +python_install_all() {
96 + distutils-r1_python_install_all
97 +
98 + use examples && dodoc -r examples
99 +}