# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..12} ) EGIT_REPO_URI="https://github.com/aws/${PN}.git" inherit distutils-r1 git-r3 DESCRIPTION="CLI tool to manage Serverless applications using AWS SAM" HOMEPAGE="https://github.com/aws/aws-sam-cli" LICENSE="Apache-2.0" SLOT="0" IUSE="test" RESTRICT="test" RDEPEND="dev-python/aws-lambda-builders[${PYTHON_USEDEP}] dev-python/aws-sam-translator[${PYTHON_USEDEP}] dev-python/boto3[${PYTHON_USEDEP}] dev-python/chevron[${PYTHON_USEDEP}] dev-python/cfn-lint[${PYTHON_USEDEP}] dev-python/click[${PYTHON_USEDEP}] dev-python/dateparser[${PYTHON_USEDEP}] dev-python/docker[${PYTHON_USEDEP}] dev-python/flask[${PYTHON_USEDEP}] dev-python/jmespath[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/rich[${PYTHON_USEDEP}] dev-python/ruamel-yaml[${PYTHON_USEDEP}] dev-python/tomlkit[${PYTHON_USEDEP}] dev-python/watchdog[${PYTHON_USEDEP}] dev-util/cookiecutter[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" BDEPEND="test? ( dev-python/filelock[${PYTHON_USEDEP}] dev-python/flaky[${PYTHON_USEDEP}] dev-python/parameterized[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-timeout[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] )" distutils_enable_tests pytest python_test() { AWS_DEFAULT_REGION=us-east-1 py.test -v || die "tests failed with ${EPYTHON}" }