mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
dev-python/mastodon-py: add 2.1.4
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST mastodon_py-2.0.1.tar.gz 10988936 BLAKE2B 237e81a0501db59acb066cb156cddf9898265b7dc988c1edee451f4f9c5fb4f97629b2dfc561ce42e5d1e5858e00a916b56d002acbbe2891b4bb4d57e05661da SHA512 7aff1f6cf6c159d9ab95ff9d44aa1249c8db1536121fc5cd88ff0c46c22b23efb0c4857d6c6a744630b23804504b6d7886848ca194957dd524b4b014dadcd5e3
|
||||
DIST mastodon_py-2.1.4.tar.gz 11636752 BLAKE2B 9e001da9d17b93e2ab8fbabcd7a8f2a19380aad76811acda15556e8a5bf7f38dc432d027f9e47ce7f8bf778aaff12df6f81ef3a953e9b06bcd1f8d80779d6f6f SHA512 cfb4515a24e69df16d320630157e1b32a99203fca8a56ab5c5f93b5585c56d1034a0520af276b384779bdfe2cc6d16451932e4014e005d756fd2c335de84bf00
|
||||
|
||||
61
dev-python/mastodon-py/mastodon-py-2.1.4.ebuild
Normal file
61
dev-python/mastodon-py/mastodon-py-2.1.4.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYPI_PN="Mastodon.py"
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python wrapper for the Mastodon API"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/Mastodon.py/
|
||||
https://github.com/halcy/Mastodon.py
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="blurhash crypt grapheme"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/decorator-4.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.4.2[${PYTHON_USEDEP}]
|
||||
blurhash? ( >=dev-python/blurhash-1.1.4[${PYTHON_USEDEP}] )
|
||||
crypt? (
|
||||
>=dev-python/cryptography-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/http-ece-1.0.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
grapheme? (
|
||||
dev-python/grapheme[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/python-magic[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/vcrpy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=(
|
||||
pytest-mock
|
||||
pytest-recording
|
||||
requests-mock
|
||||
)
|
||||
EPYTEST_XDIST=1
|
||||
EPYTEST_DESELECT=(
|
||||
# passes only with outdated 'grapheme'
|
||||
tests/test_status_length.py::test_get_status_length_against_ground_truth
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx-rtd-theme
|
||||
|
||||
python_test() {
|
||||
epytest -o addopts=
|
||||
}
|
||||
@@ -1,9 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>cyber+gentoo@sysrq.in</email>
|
||||
<name>Anna</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">Mastodon.py</remote-id>
|
||||
<remote-id type="github">halcy/Mastodon.py</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="blurhash">Install dependencies required for decoding blurhash strings to images</flag>
|
||||
<flag name="grapheme">Install dependencies required for grapheme-aware string handling</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user