summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-10-07 05:52:10 +0200
committerMichał Górny <mgorny@gentoo.org>2023-10-07 06:42:57 +0200
commit8683e0988bd98577d8b256664d235dfd4547f324 (patch)
treedc33e628e20e8e9515163e7a538d20ceed7fecbf /dev-python
parentdev-python/tables: Bump to 3.9.1 (diff)
downloadgentoo-8683e0988bd98577d8b256664d235dfd4547f324.tar.gz
gentoo-8683e0988bd98577d8b256664d235dfd4547f324.tar.bz2
gentoo-8683e0988bd98577d8b256664d235dfd4547f324.zip
dev-python/aws-sam-translator: Bump to 1.77.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/aws-sam-translator/Manifest1
-rw-r--r--dev-python/aws-sam-translator/aws-sam-translator-1.77.0.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest
index 9130017c091c..cd1886786e33 100644
--- a/dev-python/aws-sam-translator/Manifest
+++ b/dev-python/aws-sam-translator/Manifest
@@ -1 +1,2 @@
DIST serverless-application-model-1.76.0.gh.tar.gz 5114195 BLAKE2B 2d9eb5ea740c02ad3b6ca4024c6a5f6f87fe0a2703535eab5e69488fb30e2172ab3edd67ab4a668a9790040a0edc698c2ac4fc4c244c0b2f8037a5ce6e1175fb SHA512 97bc81cc41ecc5e1b5bc253e9ba0839598a09a49e564bfe06bd3460867412ce2551e1ad79640cf40641bdc9d09261bdd8bdb87d78c860f6c3d2b316fcee9c027
+DIST serverless-application-model-1.77.0.gh.tar.gz 5114799 BLAKE2B a5299e6a3dacca20304e3f93d84a96aa8013d435ecd62621e7fcc302c709ad86185cfa509925bebf379597186ed9fe82ac384f6314ecdc66826d8cd7df3f30c6 SHA512 961a1dcd1117b6d2c9b08c1e9b945d02ac19c9b41b91415264aadc9461fd62ece294a7da6e99ec128be685f6df605e8febf91469a1161bc94b12ae3976901f9e
diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.77.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.77.0.ebuild
new file mode 100644
index 000000000000..d6a4188a21e6
--- /dev/null
+++ b/dev-python/aws-sam-translator/aws-sam-translator-1.77.0.ebuild
@@ -0,0 +1,60 @@
+# 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..11} )
+
+inherit distutils-r1
+
+MY_P=serverless-application-model-${PV}
+DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates"
+HOMEPAGE="
+ https://github.com/aws/serverless-application-model/
+ https://pypi.org/project/aws-sam-translator/
+"
+SRC_URI="
+ https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ <dev-python/boto3-2[${PYTHON_USEDEP}]
+ >=dev-python/boto3-1.19.5[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-3.2[${PYTHON_USEDEP}]
+ <dev-python/pydantic-3[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-1.8[${PYTHON_USEDEP}]
+ <dev-python/typing-extensions-5[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.4[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/parameterized[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # so much noise...
+ sed -i -e '/log_cli/d' pytest.ini || die
+
+ # deps are installed by ebuild, don't try to reinstall them via pip
+ truncate --size=0 requirements/*.txt || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x AWS_DEFAULT_REGION=us-east-1
+ epytest -o addopts=
+}