aiogram-3.0.0_beta4.ebuild

This commit is contained in:
Anton Bolshakov 2022-08-28 18:29:11 +08:00
parent 8c66a58cba
commit 83fbc2b6b8
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 96 additions and 2 deletions

View file

@ -1 +1,2 @@
DIST aiogram-2.22.1.tar.gz 157651 BLAKE2B 3bd74286bd5c40413e5e24635984cb95b4a9348935f8d97ec1a5012e9d1af49ad92e239bef284c532284cd630bf2896d81017799bb9d603dd5891f1eff1386ef SHA512 c516f3e66195c548c85f9b02db96c3889da1166c72211be7e28526fd1c8b2ff2baadf0ab6cc586c27e8d8a42e2474ef26b149cc6950c900c2a14f9053ca870f7
DIST aiogram-3.0.0-beta.4.tar.gz 691644 BLAKE2B a4830ff4128a2753f1da0791ff51c27eaa5ba8e123c039ce7ed9b207d57c93962bc8c2f907a7f5757f379dd164e132496cf699a6468c90b4a947ee38d82f9643 SHA512 88003f85fad84e72c7f40933e3528183aac1e84db548c78155ff78d4def17016b88d69f59e0546935f7b036d72074abe5e331864f33569ce7313bdf62040e36c

View file

@ -0,0 +1,66 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="${PV/_beta/-beta.}"
MY_P="${PN}-${MY_PV}"
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Asynchronous framework for Telegram Bot API"
HOMEPAGE="https://github.com/aiogram/aiogram"
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/aiogram/aiogram/archive/refs/tags/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="docs i18n fast proxy redis"
RESTRICT="test"
RDEPEND="
>=dev-python/magic-filter-1.0.8[${PYTHON_USEDEP}]
>=dev-python/aiohttp-3.8.1[${PYTHON_USEDEP}] <dev-python/aiohttp-3.9.0
>=dev-python/pydantic-1.9.2
>=dev-python/aiofiles-0.8.0
i18n? ( >=dev-python/Babel-2.9.1[${PYTHON_USEDEP}] <dev-python/Babel-2.11.0 )
proxy? ( >=dev-python/aiohttp-socks-0.5.3[${PYTHON_USEDEP}] )
redis? ( dev-python/redis-py )
fast? (
>=dev-python/uvloop-0.16.0[${PYTHON_USEDEP}]
>=dev-python/ujson-1.35[${PYTHON_USEDEP}]
)
docs? (
dev-python/Sphinx
dev-python/sphinx-intl
dev-python/sphinx-autobuild
dev-python/sphinx-copybutton
dev-python/furo
dev-python/sphinx-prompt
dev-python/Sphinx-Substitution-Extensions
dev-python/towncrier
dev-python/pymdown-extensions
dev-python/markdown-include
dev-python/pygments
)"
DEPEND="${RDEPEND}"
#BDEPEND="
# test? (
# dev-python/redis-py[${PYTHON_USEDEP}]
# dev-python/magic-filter[${PYTHON_USEDEP}]
# dev-python/aiofiles[${PYTHON_USEDEP}]
# dev-python/aiohttp[${PYTHON_USEDEP}]
# )
#"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# from aresponses import ResponsesMockServer
# ModuleNotFoundError: No module named 'aresponses'
#distutils_enable_tests pytest
S="${WORKDIR}/${MY_P}"

View file

@ -0,0 +1 @@
DIST magic-filter-1.0.8.tar.gz 5166 BLAKE2B 58d1077e34103c39cd52b27da024eb54a3fcd46c95f4cdcb8f4bbfced640016c47bbdba8c2ccf5c7c955ad886128ef76ad9516e523f728f2eacb8e38bc3aaae6 SHA512 953d7cd579688fce40ad095377db7b782a399f0489bd4dfeac9e307fbc2147cb45216ae1af3da5baeb292e1fd44efe3e183b7dc02d975fd371bfb077dc1c973e

View file

@ -0,0 +1,23 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
#https://projects.gentoo.org/python/guide/distutils.html#pep-517-build-systems
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Magic filter based on dynamic attribute getter"
HOMEPAGE="https://github.com/aiogram/magic-filter/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -4,7 +4,7 @@
EAPI=8
#https://projects.gentoo.org/python/guide/distutils.html#pep-517-build-systems
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1

View file

@ -66,7 +66,8 @@ def portage_mapping(search):
"dev-python/zope.interface": "dev-python/zope-interface",
"dev-python/pjsip": "net-libs/pjproject",
"dev-python/protego": "dev-python/Protego",
"dev-python/pyVNC": "dev-python/pyvnc"
"dev-python/pyVNC": "dev-python/pyvnc",
"dev-python/Pygments": "dev-python/pygments"
}
for key in mapping:
@ -82,6 +83,8 @@ def pyproject_toml():
#Debug
#print(dependencies ) # List of static requirements
for key, value in dependencies.items():
if key == "python":
continue
#if value is {'git': 'https://github.com/BC-SECURITY/pyVNC.git'}
if type(value) is dict:
value="9999"