diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-09-29 23:21:47 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-09-29 23:59:33 +0200 |
commit | de1f44204a379d1630a663d06e87963cd31a48d3 (patch) | |
tree | feef7d1f0e06b4547d8088688f0522fe3aec92d7 /dev-python/aws-sam-translator | |
parent | dev-python/cachetools: Bump to 4.2.3 (diff) | |
download | gentoo-de1f44204a379d1630a663d06e87963cd31a48d3.tar.gz gentoo-de1f44204a379d1630a663d06e87963cd31a48d3.tar.bz2 gentoo-de1f44204a379d1630a663d06e87963cd31a48d3.zip |
dev-python/aws-sam-translator: Bump to 1.39.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/aws-sam-translator')
-rw-r--r-- | dev-python/aws-sam-translator/Manifest | 1 | ||||
-rw-r--r-- | dev-python/aws-sam-translator/aws-sam-translator-1.39.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest index 4ed1df19058f..a7f777770315 100644 --- a/dev-python/aws-sam-translator/Manifest +++ b/dev-python/aws-sam-translator/Manifest @@ -1 +1,2 @@ DIST aws-sam-translator-1.38.0.tar.gz 895012 BLAKE2B e3beae1af8b9fa510f3f21f4f637b0816084c206d49009106097c3b58ef8755b51041b6908fcd04c28b18e512b782570f84f5acfc7de5c6cab239a70e5bd114e SHA512 d76ef3e95bf5e4db1cfbfd1df9928d8f62dd1245f6629ab5078c4f3761e1d5e4ac372d698aa8fba1f4f77a38826c2e9c9f4899518dccacf56ffba2f89ddea801 +DIST aws-sam-translator-1.39.0.tar.gz 974687 BLAKE2B 1cde943fe187bb4d2fcf64a8417fc7d2f0c8226e2cd3a583ed14569e0ef39dfb6a718971552b577cbb4858272c33054a04a76cfc61c0dfcde303e6578a2fe534 SHA512 010461ecc2ec7131af1a9f078abbc36594e8358307ffc397c2c1daf433becea9d9c5a5afd8e47e62c6c618a700ca957f559401e02f7c772271f70a7bc2311b8a diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.39.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.39.0.ebuild new file mode 100644 index 000000000000..b148711fb25a --- /dev/null +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.39.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +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 -> ${P}.tar.gz" +S="${WORKDIR}/serverless-application-model-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/boto3-1.17[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.6[${PYTHON_USEDEP}] + >=dev-python/six-1.11[${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() { + # remove pytest-cov dependency + sed -r -e 's:--cov(-[[:graph:]]+|)[[:space:]]+[[:graph:]]+::g' \ + -i 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 +} |