1 |
commit: 6a2b57f2dcef3288afd5f46820bf5d54d76ba980 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Fri Dec 2 07:49:48 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Fri Dec 2 08:39:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6a2b57f2 |
7 |
|
8 |
dev-python/mastodon-py: add 1.8.0 |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/mastodon-py/Manifest | 1 + |
13 |
dev-python/mastodon-py/mastodon-py-1.8.0.ebuild | 55 +++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/mastodon-py/Manifest b/dev-python/mastodon-py/Manifest |
17 |
index f09b43622..c7178345c 100644 |
18 |
--- a/dev-python/mastodon-py/Manifest |
19 |
+++ b/dev-python/mastodon-py/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST Mastodon.py-1.7.0.tar.gz 8633772 BLAKE2B e27827cf7b5a010616524355c51771709591ee498b398cb009fe73697a96a313880e9f81e138c48c9f144fe9b35222b6852d84a2b4648803604b0a3a9ed190c3 SHA512 faa056fc800104a732524126458baec68ef838fe36fb7df5721262f6faf61e0f5591026efb1a19612ceeaa785eb81b4aab55728479bf216f6d2b9afcfedcdd18 |
22 |
+DIST Mastodon.py-1.8.0.tar.gz 8659035 BLAKE2B 46c07fc3e3cf289f8a161975b1f3f36a88882c3299e79b331f3c659c18c5cafbc7144be57bf580212152a345ab4c4e73a08ea4d6052953fae6664eabd6360c3f SHA512 497cdb42adeceeea6f65210daf94eff0c6ce26b286fabc13976c8276649b6b6f51f47b4e99733133c60dc373fcbb0b0760a20ff526d8435391c43e8f06666696 |
23 |
|
24 |
diff --git a/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild b/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..9f6ab1e3e |
27 |
--- /dev/null |
28 |
+++ b/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+inherit distutils-r1 optfeature |
38 |
+ |
39 |
+MY_PN="Mastodon.py" |
40 |
+MY_P="${MY_PN}-${PV}" |
41 |
+DESCRIPTION="Python wrapper for the Mastodon API" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/Mastodon.py/ |
44 |
+ https://github.com/halcy/Mastodon.py |
45 |
+" |
46 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
47 |
+S="${WORKDIR}/${MY_P}" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/blurhash[${PYTHON_USEDEP}] |
55 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
56 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
57 |
+ dev-python/python-magic[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
59 |
+ dev-python/requests[${PYTHON_USEDEP}] |
60 |
+ dev-python/six[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
65 |
+ dev-python/http_ece[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
67 |
+ dev-python/pytest-vcr[${PYTHON_USEDEP}] |
68 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
69 |
+ dev-python/vcrpy[${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+ |
75 |
+distutils_enable_sphinx docs |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ distutils-r1_src_prepare |
79 |
+ rm setup.cfg || die |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ optfeature "webpush support" "dev-python/cryptography dev-python/http_ece" |
84 |
+} |