From 2719f73b6813d11d13a9650cdd2ab8ec6e69385d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 9 Jul 2022 15:43:36 +0100 Subject: gentoo resync : 09.07.2022 --- dev-python/stripe/Manifest | 2 + dev-python/stripe/stripe-3.5.0.ebuild | 71 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 dev-python/stripe/stripe-3.5.0.ebuild (limited to 'dev-python/stripe') diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index a7b385119575..9c41c285c14b 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,7 +1,9 @@ DIST stripe-3.2.0.tar.gz 245873 BLAKE2B c75864cebc4b62c116138bb3b9fcc7b521a7c89c7252bb2ad03520b0904ad701bab27fbe1a0ae500a2782bf737295218180991fe0d5f224038f7bdcfd2596598 SHA512 dbeb846294928fd608d547b8e4aedf188345ce68ce6e9b4c046e86e5a622d96281cf0507db4d1ba5834c68252bda573da7dac725aa1d7cbeb820c65e166f3a1a DIST stripe-3.3.0.tar.gz 246317 BLAKE2B f734df83509b6c77f865d52b2ec17ac5ac271661478706787616afde1f85cb356f05c2fff63289b3bb180658abab546d39245563f18f4f7a3e8b72a0e578fb34 SHA512 4f00fd9901a5b4d873c4a9a00483f57f4cd9359f8a440b3d783e7aeed250e33400a7405ca8ea5af29fd1b44bc84c65fa59c8121e4ffb4852584ffd3fc2099910 DIST stripe-3.4.0.tar.gz 246528 BLAKE2B 81af648356734400c109d674e1f62f45c3b0540b0ed0bd94e407f5072f5bb996270b4edf12bd00e61bb790ee2c12d3d0fa633287a60e27087e64c15aa421650a SHA512 81a391b2fef02028a5680df2240238bd18cc31f522790ee72fd77c861d2f389be3ead9bc1de261ac7bced3061235ffc25b6baadb69a20a2a53ced75aee0119ba +DIST stripe-3.5.0.tar.gz 247698 BLAKE2B 8c47b3f4af21934d4dddea2d95831d5d4772c0cf42f8a5d3cff90dbd2dfd51a37c34f92b6df30ddcafbb1ccbde766744ec63fe62881acabbf1437a626ec0ef6c SHA512 67e63f95b489e049d81d9b3929342a8cc2bc3638060d9f278752459d32408bfe8d5f09c4c047a1ed0deedce875b0a84873a3b120f6bb5f30c0668eda5129e4ee EBUILD stripe-3.2.0.ebuild 1816 BLAKE2B 846a6eea171f1d73863f6516db4721a7144180ca414467a9dd6cc815f6d29e7968158edd5b2bed7d9fb46b6245264f7957c715e1ed97439a2c51a7b7bc2af448 SHA512 cb4da8684e5f88a360274f02b300e52f3e741d2e71eadba00217f5ea61f7e443ee60c9efdc7270abb79558e10e61bc217816b53f30cdaa566dce19e33cb21297 EBUILD stripe-3.3.0.ebuild 1818 BLAKE2B 07faeb2dbdcec4ff86156c6d77c0f036ce5fa03cd0d554a3b6b9d2038fdb61989aab488e8b79a7c3346b6ef30e308aa064c607ad7dec92f3b52392cc11a8e9d6 SHA512 864157a1a6bd6a34ef80b9f1c731c8e9d0a0b1d6f16134b42bf34cdf70ad80449d3e0197458c831018192d314a239123b4e0ff9243d75093a3310554168876d8 EBUILD stripe-3.4.0.ebuild 1818 BLAKE2B 2e62e84762c936b0b92e13f72426398be3642e9ffd2f8147abe9cc4d67122a2d0141457483af3874fe1c2beffb44233a62d9bad44e9fb2f9e0a05eb96105820b SHA512 207206c66e98be9137b9a450e1d778ba75c311f7044c91949473cd5479eb64802205ef4580086865039a542eabbae4851cf74ed908436a63514f69f30f263ad1 +EBUILD stripe-3.5.0.ebuild 1818 BLAKE2B 5e440330c0fe0ea5d7e7bb2471e90b7c4f4d81c72fb4932cd69b9b00b0cdbc624ba109e69bb1df66b6694291f99e886346bc8763b0143ab1deddbe36c0ecb2ec SHA512 56c8556a49388714050f20047a8f086c36d3afc4e831aaa4eaf246227777216af4a0d6c474b72674e162bee9b8bd5308d668a9cb63280d1b256a34b8170b5906 MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-3.5.0.ebuild b/dev-python/stripe/stripe-3.5.0.ebuild new file mode 100644 index 000000000000..52c5023ff5ec --- /dev/null +++ b/dev-python/stripe/stripe-3.5.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.136.0 + dev-python/pytest-mock[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +python_test() { + 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" +} -- cgit v1.2.3