summaryrefslogtreecommitdiff
path: root/dev-python/stripe
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-20 08:08:43 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-20 08:08:43 +0000
commita332b8e207ac6a51fa349c699b486d870c9cdc70 (patch)
tree533ef6beef6beb1c438f8db09b780aa1b8f5eb3b /dev-python/stripe
parentaec90632962b8bc48f23a1b5505d8afa0dfb6943 (diff)
gentoo auto-resync : 20:01:2024 - 08:08:43
Diffstat (limited to 'dev-python/stripe')
-rw-r--r--dev-python/stripe/Manifest2
-rw-r--r--dev-python/stripe/stripe-7.13.0.ebuild81
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 4615042ba017..313a9f6ae180 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -1,7 +1,9 @@
DIST stripe-7.10.0.tar.gz 783205 BLAKE2B ab06c4f81bd3f2492a1e5982995f5205f345f395b8cc7e470a22af62d57421789208c76097a08019550a61ab65b41ea24305bd303a9e3d6e3cb791fe552bcbc7 SHA512 dbdfd2ca11f592caa31fb53b0204e64292d4471d5d3e607447bbcfabe24db684331d77f0ff12da77ec5c4ad20709328a7366eb55b9c3d804ca39442971cefcde
DIST stripe-7.11.0.tar.gz 783456 BLAKE2B 9317526b9c19d98b921f3fa8222486537b3bfa3a9c239d83098be1d9856a258a67276690c1f1ced6087a8d7f1fb180240f737d67f9ded5605e82de7fc4355fc0 SHA512 5cfa650d43745c8a3ab5588f30c6eaab0952aff060b9fdb84027db3422c88002d074eb29b3e2a40ed1457be6e8cd883b3323e8da538af0991114a10976b86842
DIST stripe-7.12.0.tar.gz 783948 BLAKE2B 063df7bbc118847bdee35f2919bd8023f4d58b5f1a36ad9d81dd63b6771513e3323a50ce8f83bb1719d6a44e6e823384a908af9b2091fb7c27a7bf78e5e22b40 SHA512 819aa9f4ec1d7269d14d43abd2c4ec7b20b76bdd4f290962ac51b89926ab2e1f1644dd9c653556673b7a65e97510e6d588052fcc4a7e3c05464a0564bb8d8ed0
+DIST stripe-7.13.0.tar.gz 789362 BLAKE2B 326a8b0987ffc7b9bcca2c3fbff548770223a6e153ac4b04fdfe70c400ce0b7d06d40182727ca2fc0ab700f57133481510aec9432c6582dec2a34eba57e682fe SHA512 0ed4d7d1781236f8e6bb3685680f59cf9c3bdf8645e0f5cd17753d079e42965660666ec76cb65ee6d4145514706fd39f6c0f1af331033d0eb3f47f8445082be7
EBUILD stripe-7.10.0.ebuild 2139 BLAKE2B c42fcdca6bdae6a0cfd2abefd1347acb645b2845c81c3434613418549fc3c95db6ffd4a08822348a36b68596a9c5552b415caced5165cc67a02dc198d0e5b497 SHA512 2cd8c6d898bd13fca943c647cf165266783437ab0e66b4827da40243c7cc6b237435da630e5a8b662612d660cb509615b1d7ff47295a5f180512de2918525cac
EBUILD stripe-7.11.0.ebuild 2142 BLAKE2B c24257d04dba834019b94e0128f08d446f6953dfa87faf7b9fb79c14eadf2a525333a8ee9fec920637b899c4b467244978ac1677b01af79b68c975ba8adf81b0 SHA512 fd89abedaec2309bd6186ead14456c119e9ae9ab942feca5c9f85fb3ff6429cb0c38b52f0a406ed3994d34166cf2c848f37a9353546e3137fc0db7b3f15f2be5
EBUILD stripe-7.12.0.ebuild 2142 BLAKE2B 3cd84fb8e32d5bf2f9f48e889d1f4463571bcef1a8d0539a0ea48424acd0cbaae9ff6dce5f33d979307052caac1aacf1618d83ba22f298016614da1c123376e5 SHA512 3e480e177e37e09c20e75a30cea09cab309bc733e7017ada7631c7c0ab44592d7c88f5449ba21e3eb037409b8d018a077e13daf3223f6e3cc047d4ad9cdd4eb4
+EBUILD stripe-7.13.0.ebuild 2142 BLAKE2B 3cd84fb8e32d5bf2f9f48e889d1f4463571bcef1a8d0539a0ea48424acd0cbaae9ff6dce5f33d979307052caac1aacf1618d83ba22f298016614da1c123376e5 SHA512 3e480e177e37e09c20e75a30cea09cab309bc733e7017ada7631c7c0ab44592d7c88f5449ba21e3eb037409b8d018a077e13daf3223f6e3cc047d4ad9cdd4eb4
MISC metadata.xml 673 BLAKE2B 6b85b1f88713d2365274fcff21648748039b48028b3c34c1192e16ca12d0f3b4d14ab13c7c2a744c381898ea0c1304bda8be52d3fadddc1a1b787f010b001398 SHA512 e3178927a69d14f59673acc5eaedda59db5a07e2145ed6fb0597363b60183cb3e7a7b0feefc1d4c9095d52ed96e0be32ef5dc23ad0c20fd6e6b33c830177c0be
diff --git a/dev-python/stripe/stripe-7.13.0.ebuild b/dev-python/stripe/stripe-7.13.0.ebuild
new file mode 100644
index 000000000000..e5d81167c1c1
--- /dev/null
+++ b/dev-python/stripe/stripe-7.13.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+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.180.0
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ net-misc/curl
+ )
+"
+
+distutils_enable_tests pytest
+
+DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md )
+
+src_prepare() {
+ if ! use telemetry; then
+ sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die
+ fi
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest tests -p pytest_mock
+}
+
+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"
+}