1 |
commit: 75f046be742f40bb4425cfb20f7af06e0f8bbd73 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 6 20:01:40 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 6 20:20:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75f046be |
7 |
|
8 |
net-misc/yt-dlp: make pip check happier |
9 |
|
10 |
mutagen and websockets are optional, and we use |
11 |
pycryptodome rather than domex on Gentoo. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/828466 |
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
.../yt-dlp/{yt-dlp-2021.12.1.ebuild => yt-dlp-2021.12.1-r1.ebuild} | 7 +++++++ |
17 |
1 file changed, 7 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild |
20 |
similarity index 89% |
21 |
rename from net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild |
22 |
rename to net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild |
23 |
index 79ffad33d94f..89fd029d9b11 100644 |
24 |
--- a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild |
25 |
+++ b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild |
26 |
@@ -20,6 +20,13 @@ RDEPEND=" |
27 |
|
28 |
distutils_enable_tests pytest |
29 |
|
30 |
+python_prepare_all() { |
31 |
+ distutils-r1_python_prepare_all |
32 |
+ |
33 |
+ # adjust requires for pycryptodome and optional dependencies (bug #828466) |
34 |
+ sed -ri "/'pycryptodomex'/s/x//;s/'(mutagen|websockets)',?//g" setup.py || die |
35 |
+} |
36 |
+ |
37 |
python_test() { |
38 |
epytest -m 'not download' -p no:markdown |
39 |
} |