commit: 351d0b294c468c99dc16a90249e6c721f7383925
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 29 04:12:56 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 29 04:38:50 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=351d0b29
dev-python/stripe: Bump to 14.3.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/stripe/Manifest | 1 +
dev-python/stripe/stripe-14.3.0.ebuild | 91 ++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index ced87d0175c8..da878875a701 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -1 +1,2 @@
DIST stripe-14.1.0.tar.gz 1449934 BLAKE2B
abfcc3853bbdb645851e41da825c203ba5303b738c657e179525a673e2cb9d39ce8e6b9c2ebdd4eae6c02946c1ff7d0c9fe9207e357200ec457eb788134213f4
SHA512
6178266699a484a5a7a3571826f6c2fd4ccb4c4e5b8cf2b86b2da2857b00df8b575a64c9ae97d9fdd891532f7dc6b90855c58c6bbb6feaf8204231348c9519d5
+DIST stripe-14.3.0.tar.gz 1463618 BLAKE2B
6783b412c94089d13dc1efd14eb43bf2cbed93d818a9ab448cdb32bbfed975dd625baf9f51c6be2630c8dcbfe1da9a9520ee14d306e5fa1ddc7b7c4bdff39994
SHA512
85e82cadd82412b2dfee8750b92029ff8ef835d38499913644914e9a765aa57cafa659603fa403ea102149198744a5e769b5e325c653a13bdccaf31a6c94f944
diff --git a/dev-python/stripe/stripe-14.3.0.ebuild
b/dev-python/stripe/stripe-14.3.0.ebuild
new file mode 100644
index 000000000000..ad4f7c4a52dc
--- /dev/null
+++ b/dev-python/stripe/stripe-14.3.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Stripe Python bindings"
+HOMEPAGE="
+ https://github.com/stripe/stripe-python/
+ https://pypi.org/project/stripe/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="telemetry"
+
+RDEPEND="
+ >=dev-python/requests-2.20[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}]
+"
+# please bump dev-util/stripe-mock dep to the latest version on every bump
+BDEPEND="
+ test? (
+ >=dev-util/stripe-mock-0.197.0
+ dev-python/aiohttp[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/trio[${PYTHON_USEDEP}]
+ net-misc/curl
+ )
+"
+
+EPYTEST_PLUGINS=( anyio pytest-mock )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ if ! use telemetry; then
+ sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py
|| die
+ fi
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # Internet
+
tests/test_http_client.py::TestLiveHTTPClients::test_httpx_request_async_https
+
'tests/test_integration.py::TestIntegration::test_async_raw_request_timeout[asyncio-aiohttp]'
+ # timing
+
tests/test_integration.py::TestIntegration::test_passes_client_telemetry_when_enabled
+ )
+
+ epytest tests
+}
+
+src_test() {
+ local stripe_mock_port=12111
+ local stripe_mock_max_port=12121
+ local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log"
+ # Try to start stripe-mock until we find a free port
+ while [[ ${stripe_mock_port} -le ${stripe_mock_max_port} ]]; do
+ ebegin "Trying to start stripe-mock on port ${stripe_mock_port}"
+ stripe-mock --http-port "${stripe_mock_port}" &>
"${stripe_mock_logfile}" &
+ local stripe_mock_pid=${!}
+ sleep 2
+ # Did stripe-mock start?
+ curl --fail -u "sk_test_123:" \
+ "http://127.0.0.1:${stripe_mock_port}/v1/customers" &>
/dev/null
+ eend ${?} "Port ${stripe_mock_port} unavailable"
+ if [[ ${?} -eq 0 ]]; then
+ einfo "stripe-mock running on port ${stripe_mock_port}"
+ break
+ fi
+ (( stripe_mock_port++ ))
+ done
+ if [[ ${stripe_mock_port} -gt ${stripe_mock_max_port} ]]; then
+ eerror "Unable to start stripe-mock for tests"
+ die "Please see the logfile located at: ${stripe_mock_logfile}"
+ fi
+
+ local -x STRIPE_MOCK_PORT=${stripe_mock_port}
+ distutils-r1_src_test
+
+ # Tear down stripe-mock
+ kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock"
+}