summaryrefslogtreecommitdiff
path: root/dev-python/stripe
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-08 11:11:23 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-08 11:11:23 +0000
commit909e6f36d5376b253aba44edc8f2af1a5acd0c11 (patch)
tree048569e21e5eb27492bcd1fa73bbc1cc462b3ce5 /dev-python/stripe
parentac778f2cf394586c43beb5d753a19ff3f6063556 (diff)
gentoo auto-resync : 08:12:2023 - 11:11:23
Diffstat (limited to 'dev-python/stripe')
-rw-r--r--dev-python/stripe/Manifest2
-rw-r--r--dev-python/stripe/stripe-7.8.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 600b4f16be98..f58251b7eb5b 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -1,7 +1,9 @@
DIST stripe-7.4.0.tar.gz 743353 BLAKE2B 30246bf8c5c922fe1ab906757fef064d4f6eea6989825e1ddabc1ad3fad95cd486bcaa3be860045c29daa2f3c84f65a01e275c919da286d8f0d81cfa3aa512b8 SHA512 9e67fbfdd4fc65ad72a56bc841316e803eca031307a3ced4ba5773773a9920fd1d2e11cb7de6e6da4b2aae78611e198d999d85a5df65d3d7a43af195a47a84c7
DIST stripe-7.6.0.tar.gz 743504 BLAKE2B 32b82cd34241f00c259edc3e0d46d25337cd2490e6c3f4fb9d90d13e785f5e844fbaf66b224a7ae2ac7643d80b90eb36fde465ffdae058ded7741cb53dca5ec6 SHA512 5383ee5bc7e128840f9a1a738eca3bd6ce4a98df554243308d3b6fc667b519b996fc63d34c29abfc4f2f9082e8062aaf9aacdb3edb70e4ef2a6556228926daa2
DIST stripe-7.7.0.tar.gz 747906 BLAKE2B 40d6f4cdbefef54df8aa84529c879f9cfe3b36fafb35cdc12e98513ae63e3fc41a38174def79adf2e891445502771437489f73010b206a005a02883ef51400fd SHA512 988bf67fce52c5b48e8a7d0d6dac408fd5bc1bd3cbd0d80b06ab5b7b8c44a5daa231c6f3f5e563cea2a717cbec56ae4a83eac9526a463074ff3d1d2cb68a6b92
+DIST stripe-7.8.0.tar.gz 768444 BLAKE2B 8262f097cfac300db6f12ef9781b28b4841bed7f23f1fa72e4c147702008e3f44b50f8bdcbaa5144607f95fac8db519536d996d0dd1457233f11e4e2b705eb78 SHA512 969ce4b59e5a16735c556132c9f5bb9c134cc32fd385d69e52495ae20e0367f0acb5f24f3e1c025c851aa119ce5f2490f06fa320bfcd5712ae4609cbb6b22256
EBUILD stripe-7.4.0.ebuild 1969 BLAKE2B 2051889d37342fcde47305b9055be88780e30ca41e504d6c4e1c67302706f8663fbb448b442b0b6fff77a4aff8047a904860d2dd4d7689bf76ebe2071997e659 SHA512 3ba3363d9b44c66cf9ebec472b76885da3e4d7b55a6227e6d54e7dc564fe5b5702d3884fb860bbcdcdfee1f11f427c1ca21480b7ebcf7d79d09d0adb1f3d8e83
EBUILD stripe-7.6.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e
EBUILD stripe-7.7.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e
+EBUILD stripe-7.8.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e
MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77
diff --git a/dev-python/stripe/stripe-7.8.0.ebuild b/dev-python/stripe/stripe-7.8.0.ebuild
new file mode 100644
index 000000000000..a5deb252c18b
--- /dev/null
+++ b/dev-python/stripe/stripe-7.8.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2023 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"
+
+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.178.0
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ net-misc/curl
+ )
+"
+
+distutils_enable_tests pytest
+
+DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md )
+
+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"
+}