diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-12 10:10:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-12 12:01:31 +0200 |
commit | 6f724efdd6b2943640c9eea13128d71a041eb65e (patch) | |
tree | 2ac482f28365887b63ed58e8f904c5c47a84f0c1 /dev-python/aws-sam-translator | |
parent | dev-python/pip: Bump to 20.2.2 (diff) | |
download | gentoo-6f724efdd6b2943640c9eea13128d71a041eb65e.tar.gz gentoo-6f724efdd6b2943640c9eea13128d71a041eb65e.tar.bz2 gentoo-6f724efdd6b2943640c9eea13128d71a041eb65e.zip |
dev-python/aws-sam-translator: Bump to 1.26.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.26.0.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest index 944cdec687a4..59a4ed1a44c8 100644 --- a/dev-python/aws-sam-translator/Manifest +++ b/dev-python/aws-sam-translator/Manifest @@ -1 +1,2 @@ DIST aws-sam-translator-1.25.0.tar.gz 5144283 BLAKE2B f04f2715f140b2ea0df71bb830e033442d212db88ae1f08a8027d0875e6c4d2a3404f2855d54109b1623e3c290aa7ee8f2d7d205ce2163ebdfbddcbb46215fc8 SHA512 4dd428750c7e0c73987dea89b8a257fad33a59680c282136f6adaff16e3695123d0d3d42b45cd85da5311e1b38f2a2879d54170db7d5303e6e8d9086becf66b1 +DIST aws-sam-translator-1.26.0.tar.gz 793347 BLAKE2B 701cefdf0f2c220b96104f6a0df4d2c5d2b9ccd9076a216601414407c4fe5fabfef4fd3d6cbd305a6ce94587e8d4fe937ae730c30bbb785f65a6cf53564f41d8 SHA512 2ffc3953d8591e9e4bcc9d593cb34fdc57580f043ee19e6db49068bf0c5d870c5d5902ef3887400256c36774d0b3ce0dfaa962e6be3f6066fbe1caf31bd14498 diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.26.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.26.0.ebuild new file mode 100644 index 000000000000..e570b035756d --- /dev/null +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.26.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates" +HOMEPAGE="https://github.com/awslabs/serverless-application-model https://pypi.org/project/aws-sam-translator/" +SRC_URI="https://github.com/awslabs/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 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/boto3-1.5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.6[${PYTHON_USEDEP}] + >=dev-python/six-1.11[${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 + + # don't install tests + sed -e 's:"tests",:"tests", "tests.*",:' -i setup.py || 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 +} |