From 2d2d9bf22cd17488cb471eccba61eab5c2cdfea7 Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Tue, 25 Jun 2024 06:33:41 +0200 Subject: [PATCH] dev-python/spotipy: add 2.23.0 Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3515 Signed-off-by: Andreas Billmeier --- README.md | 8 ++-- dev-python/spotipy/Manifest | 3 ++ dev-python/spotipy/metadata.xml | 16 ++++++++ dev-python/spotipy/spotipy-2.23.0.ebuild | 51 ++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 dev-python/spotipy/Manifest create mode 100644 dev-python/spotipy/metadata.xml create mode 100644 dev-python/spotipy/spotipy-2.23.0.ebuild diff --git a/README.md b/README.md index 49e652c54..fa17cb1de 100644 --- a/README.md +++ b/README.md @@ -606,11 +606,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1944 Ebuilds in total, 1933 of them have in total 1956 (42 different) licenses assigned. +There are 1945 Ebuilds in total, 1934 of them have in total 1957 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| -|MIT|1118| +|MIT|1119| |Apache-2.0|435| |GPL-3|114| |BSD|110| @@ -653,9 +653,9 @@ There are 1944 Ebuilds in total, 1933 of them have in total 1956 (42 different) |GPL-2+|1| |GPL-2-with-linking-exception|1| -(Last counted: 24/06/2024) +(Last counted: 25/06/2024) I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources. A big thanks goes to Iris for reviewing this README. -Last updated: 24/06/2024 +Last updated: 25/06/2024 diff --git a/dev-python/spotipy/Manifest b/dev-python/spotipy/Manifest new file mode 100644 index 000000000..ec72fa06e --- /dev/null +++ b/dev-python/spotipy/Manifest @@ -0,0 +1,3 @@ +DIST spotipy-2.23.0.gh.tar.gz 112399 BLAKE2B 5510ce35624c561df61fffee78f211dfa91ff8d5b3dc15d37c96a51bf830e67aac9c6a0787c71715bee17a3ba91b84766c1ecec37d5775f2182617f2b74a2cb3 SHA512 52955fa3365d5153f19f60874ce8e96910ac8db783499e0e2ef2ab31127277844e24a045115dc522dd7b7535f7907de56da87e02a63b94ee7506b75c1e108e9b +EBUILD spotipy-2.23.0.ebuild 1071 BLAKE2B 9194429d885e1ac2028b7d84ca4044a761da1d1f1092226dac25d94809a8f2447a43cae89f8d3f284b1d1050d4aa9946d551843cfb7bf8e46a552c79b2e8e9ae SHA512 35aafe5fdefca9447a93ff8766125ad8e4c676983188f1d805f384d549467e53f2144824141c138426acac7946a8ba19e70be414d5c62086f0f442fa334383a3 +MISC metadata.xml 502 BLAKE2B a7089a66c6325dafa66497b4478aac89f463fb09ab233b4dc80e9d335b722a2ac283431b1038806af7a04e1b113b916d5729c054dcdda44ebdf726cae3da5366 SHA512 91ab9f8320f396e96c22559b0c7f323db640f2da245aeb77961a11a9ee706abdbcbd95ce7521f5211e5872aff01c2a98358cbb73981bf4d524ce7d5bef0fdf23 diff --git a/dev-python/spotipy/metadata.xml b/dev-python/spotipy/metadata.xml new file mode 100644 index 000000000..dc803fea4 --- /dev/null +++ b/dev-python/spotipy/metadata.xml @@ -0,0 +1,16 @@ + + + + + b@edevau.net + Andreas Billmeier + + + spotipy + plamere/spotipy + + paul@echonest.com + @plamere + + + diff --git a/dev-python/spotipy/spotipy-2.23.0.ebuild b/dev-python/spotipy/spotipy-2.23.0.ebuild new file mode 100644 index 000000000..a64c10516 --- /dev/null +++ b/dev-python/spotipy/spotipy-2.23.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="A lightweight Python library for the Spotify Web API" +HOMEPAGE=" + https://spotipy.readthedocs.io/ + https://github.com/spotipy-dev/spotipy/ + https://pypi.org/project/spotipy/ +" +SRC_URI=" + https://github.com/spotipy-dev/spotipy/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +KEYWORDS="amd64 arm arm64 x86" +SLOT="0" +IUSE="examples" + +RDEPEND=" + dev-python/redis[${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 + +EPYTEST_DESELECT=( + # Internet + tests/unit/test_oauth.py::TestSpotifyClientCredentials::test_spotify_client_credentials_get_access_token +) + +python_install_all() { + distutils-r1_python_install_all + + use examples && dodoc -r examples +}