From 9452a6e87b6c2c70513bc47a2470bf9f1168920e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Jun 2020 10:39:22 +0100 Subject: gentoo resync : 13.06.2020 --- dev-python/aws-xray-sdk-python/Manifest | 2 + .../aws-xray-sdk-python-2.6.0.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.6.0.ebuild (limited to 'dev-python/aws-xray-sdk-python') diff --git a/dev-python/aws-xray-sdk-python/Manifest b/dev-python/aws-xray-sdk-python/Manifest index e38dac92c792..3b0c8a8879e0 100644 --- a/dev-python/aws-xray-sdk-python/Manifest +++ b/dev-python/aws-xray-sdk-python/Manifest @@ -1,3 +1,5 @@ DIST aws-xray-sdk-2.4.2.tar.gz 66737 BLAKE2B 5f062299ad28ee12d4f90bbdcb03d691fb9a5888054eae4759b9a0e916f720e71a9b9e01fd4d11106499395c5c1aa1ec90ec4874301a34657cd04b00cb5450e3 SHA512 3d12e96a54a2fc65bd6b6772b1e9cc72c09620d9a8b900780afb6c4051b88f0ada1e2da2e31bf93c37a881514e2ae79692a287a63b44845e0e2b8cb33109f81f +DIST aws-xray-sdk-python-2.6.0.gh.tar.gz 255978 BLAKE2B f43204a25027d0ec135222879bf9158aef65ba5ca948e734be0b984d8f2582741bb36d9ae0a874dffae6ffc5209e25fa1c69069c261256c3bee71a4fe717411c SHA512 17a4716467b7f6dc2912d969143e0b7c8c0b9ab15bc57f873ec415876ad2080218c3c526f4aa2c1bbf4d1caaca62eaf122c87debb45c925fd84a1bcf00ab741f EBUILD aws-xray-sdk-python-2.4.2.ebuild 826 BLAKE2B 46d407c86eb1050c03cdd3b3b7636aca7f81d634f809e7b9e9eddbd429b2edc00692a34ce5e1323433aa0a5e679827c9e5afa9cbb8d9f9271b4cbf8e2058bd3f SHA512 73cdca73f719bc40fc504079904d5417fc50d8d5a2f217ece4e46aaa577b30aa928306690341081769d1bb180da2451967ebbf084777a50f5e3065e0d764956d +EBUILD aws-xray-sdk-python-2.6.0.ebuild 1426 BLAKE2B 0ac6bb52b242a7828052307cb3deacba25812506db96cb8d893bbc619ad9cc34683344b7ea7fb8832b9a152d01b4477bec6e4199da0481756490af4c3b3e358d SHA512 5ea8b2b6974ba2f07b2283ba2bda9e4a60cb2b1b21da907c8db145ef2165ddb3d4ecdcc5ceb39da8ade2df808063ec44c60a07e16e4e8bf3b41b2c8a107b433c MISC metadata.xml 453 BLAKE2B 78db6d0eab2360b69ec4b17c073e47d10693c8b63b5f0c9f28aa8905453085c9595bed462a7d010480ff37b8b11083e2ce93e24da7cd59413592a5b4fe63cd8c SHA512 5206f2494c0eb5ab56f9673e837b2878aec4f512f6ef6dd8b70ca66a0e5c9c18b5626d9a90541adb158f0d08e0644ed2fb02fa3b80283a0883713eb45fa21e2d diff --git a/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.6.0.ebuild b/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.6.0.ebuild new file mode 100644 index 000000000000..21cbd82511a9 --- /dev/null +++ b/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.6.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="AWS X-Ray SDK for Python" +HOMEPAGE="https://github.com/aws/aws-xray-sdk-python https://pypi.org/project/aws-xray-sdk/" +SRC_URI=" + https://github.com/aws/aws-xray-sdk-python/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=">=dev-python/botocore-1.12.122[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/jsonpickle[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/bottle[${PYTHON_USEDEP}] + dev-python/flask-sqlalchemy[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/webtest[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +src_prepare() { + # unpackaged deps + rm -r tests/ext/{aiobotocore,django,pg8000,psycopg2,pymysql,pynamodb} || die + + # TODO + sed -i -e 's:test_external:_&:' tests/test_patcher.py || die + # require Internet access + rm tests/ext/aiohttp/test_client.py || die + rm -r tests/ext/{httplib,requests} || die + + distutils-r1_src_prepare +} + +src_test() { + local -x DJANGO_SETTINGS_MODULE=tests.ext.django.app.settings + local -x AWS_SECRET_ACCESS_KEY=fake_key + local -x AWS_ACCESS_KEY_ID=fake_id + + distutils-r1_src_test +} -- cgit v1.2.3