1 |
commit: cfcfbcbb928e795646537a51242c2e46892dd233 |
2 |
Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jan 27 13:39:56 2022 +0000 |
4 |
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Jan 27 13:42:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cfcfbcbb |
7 |
|
8 |
media-sound/spotify_dl: bump to 8.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> |
12 |
|
13 |
media-sound/spotify_dl/Manifest | 1 + |
14 |
.../spotify_dl-8.0.0-fuzzy-requirements.patch | 20 +++++++++++ |
15 |
media-sound/spotify_dl/spotify_dl-8.0.0.ebuild | 41 ++++++++++++++++++++++ |
16 |
3 files changed, 62 insertions(+) |
17 |
|
18 |
diff --git a/media-sound/spotify_dl/Manifest b/media-sound/spotify_dl/Manifest |
19 |
index eea696570..22d0f0182 100644 |
20 |
--- a/media-sound/spotify_dl/Manifest |
21 |
+++ b/media-sound/spotify_dl/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST spotify_dl-7.6.0.tar.gz 319723 BLAKE2B 9b0bb4c4839226b83ce6b7f0e030c5136de47f84e4c5f069b9fe573755746a12e0b32a8ad488704aae4a5355920289d9f2e7e955a950b3e9d7c7d78f24f26928 SHA512 21f8111f679c028b71371aa3d8bd822c0e72474fb768834a5f3c84fd3491e74e56bbf7acf0c23a132cdb60ac99dbcb65d4ca60f388ee48cbaeb1b66528bd06a5 |
24 |
+DIST spotify_dl-8.0.0.tar.gz 320100 BLAKE2B a0ad0f732f244b8140f6278ca99c1a392d73455750fec1a97226fc607d3b7a1d226c2629ea3674173f8f9d0ef059c910c7e549f42b68fdbdc03efa4b07435818 SHA512 7c8d385b6777c89a4a75a7b1fc63bfcf20552a1c23e48a80d0688af0d51285085ebfb418ec5b94becd84870a07fc347ade31b6d2da511c000161489cccba23ed |
25 |
|
26 |
diff --git a/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch b/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch |
27 |
new file mode 100644 |
28 |
index 000000000..fecc8e667 |
29 |
--- /dev/null |
30 |
+++ b/media-sound/spotify_dl/files/spotify_dl-8.0.0-fuzzy-requirements.patch |
31 |
@@ -0,0 +1,20 @@ |
32 |
+Accept a wider range of versions, the provided ones are too |
33 |
+restrictive and sometimes outside the gentoo tree. |
34 |
+Patch by Nicola Smaniotto. |
35 |
+ |
36 |
+diff --git a/requirements.txt b/requirements.txt |
37 |
+index 586b007..987eeb2 100644 |
38 |
+--- a/requirements.txt |
39 |
++++ b/requirements.txt |
40 |
+@@ -1,5 +1,5 @@ |
41 |
+-sentry_sdk==1.5.3 |
42 |
+-yt-dlp>=2022.01.21 |
43 |
+-spotipy==2.16.1 |
44 |
+-mutagen==1.45.1 |
45 |
+-rich==11.0.0 |
46 |
+\ No newline at end of file |
47 |
++sentry_sdk>=1.5, <2 |
48 |
++yt-dlp>=2021.10.27 |
49 |
++spotipy>=2.16, <3 |
50 |
++mutagen>=1.45, <2 |
51 |
++rich>=11.0, <12 |
52 |
|
53 |
diff --git a/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild b/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild |
54 |
new file mode 100644 |
55 |
index 000000000..aebf95422 |
56 |
--- /dev/null |
57 |
+++ b/media-sound/spotify_dl/spotify_dl-8.0.0.ebuild |
58 |
@@ -0,0 +1,41 @@ |
59 |
+# Copyright 2022 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=8 |
63 |
+ |
64 |
+PYTHON_COMPAT=( python3_{8..9} ) |
65 |
+ |
66 |
+inherit distutils-r1 |
67 |
+ |
68 |
+MY_PN="${PN/_/-}" |
69 |
+ |
70 |
+DESCRIPTION="Downloads songs from a Spotify Playlist/Track/Album that you provide" |
71 |
+HOMEPAGE="https://github.com/SathyaBhat/spotify-dl/" |
72 |
+SRC_URI="https://github.com/SathyaBhat/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
73 |
+ |
74 |
+LICENSE="MIT" |
75 |
+SLOT="0" |
76 |
+KEYWORDS="~amd64" |
77 |
+ |
78 |
+PROPERTIES="test_network" |
79 |
+RESTRICT="test" |
80 |
+ |
81 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
82 |
+ |
83 |
+RDEPEND=" |
84 |
+ >=dev-python/sentry-sdk-1.5[${PYTHON_USEDEP}] |
85 |
+ <dev-python/sentry-sdk-2[${PYTHON_USEDEP}] |
86 |
+ net-misc/yt-dlp[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/spotipy-2.16[${PYTHON_USEDEP}] |
88 |
+ <dev-python/spotipy-3[${PYTHON_USEDEP}] |
89 |
+ >=media-libs/mutagen-1.45[${PYTHON_USEDEP}] |
90 |
+ <media-libs/mutagen-2[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/rich-11.0[${PYTHON_USEDEP}] |
92 |
+ <dev-python/rich-12[${PYTHON_USEDEP}] |
93 |
+" |
94 |
+ |
95 |
+PATCHES=( |
96 |
+ "${FILESDIR}"/"${P}"-fuzzy-requirements.patch |
97 |
+) |
98 |
+ |
99 |
+distutils_enable_tests pytest |