diff --git a/dev-python/brevo-python/Manifest b/dev-python/brevo-python/Manifest new file mode 100644 index 0000000000..5dbfc6cb86 --- /dev/null +++ b/dev-python/brevo-python/Manifest @@ -0,0 +1 @@ +DIST brevo-python-1.2.0.gh.tar.gz 563863 BLAKE2B b6a925430914ec0c627c6f12a3635b907bd70a2288cb055cd0297c14ff4a56e2d03ef44a011b6e7d3f9329235d59fb2126933584b0da100221733647e83098bf SHA512 706a29b988274116fce5479484df4428ed0efb59efbcb7d3ccc6bb1eea6070ebe7f3960c336a532c3d3449cacd294ffd2d0e7c4dfc93982607af6531b42cc9e4 diff --git a/dev-python/brevo-python/brevo-python-1.2.0.ebuild b/dev-python/brevo-python/brevo-python-1.2.0.ebuild new file mode 100644 index 0000000000..194790aa32 --- /dev/null +++ b/dev-python/brevo-python/brevo-python-1.2.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..15} ) + +inherit distutils-r1 + +DESCRIPTION="Official SDK for the Brevo API" +HOMEPAGE=" + https://brevo.com/ + https://pypi.org/project/brevo-python/ + https://github.com/getbrevo/brevo-python/" +SRC_URI="https://github.com/getbrevo/brevo-python/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +PATCHES=( "${FILESDIR}/1.2.0-dont-install-test.patch" ) + +LICENSE="MIT" + +SLOT="1" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] + >=dev-python/six-1.10[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.23[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( ${RDEPEND} )" + +EPYTEST_PLUGINS=() +EPYTEST_IGNORE=( + # tries to load nonexistent module + test/test_configuration.py ) +distutils_enable_tests pytest diff --git a/dev-python/brevo-python/files/1.2.0-dont-install-test.patch b/dev-python/brevo-python/files/1.2.0-dont-install-test.patch new file mode 100644 index 0000000000..ec6049e1a3 --- /dev/null +++ b/dev-python/brevo-python/files/1.2.0-dont-install-test.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index acf468a..30648df 100644 +--- a/setup.py ++++ b/setup.py +@@ -38,7 +38,7 @@ setup( + url="", + keywords=["Swagger", "Brevo API"], + install_requires=REQUIRES, +- packages=find_packages(), ++ packages=find_packages(exclude=["test"]), + include_package_data=True, + long_description="""\ + Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | | 422 | Error. Unprocessable Entity | # noqa: E501 diff --git a/dev-python/brevo-python/metadata.xml b/dev-python/brevo-python/metadata.xml new file mode 100644 index 0000000000..2adc18d95c --- /dev/null +++ b/dev-python/brevo-python/metadata.xml @@ -0,0 +1,12 @@ + + + + + Katalin Rebhan + kat@knifepoint.net + + + brevo-python + getbrevo/brevo-python + +