diff options
author | 2021-02-21 14:53:57 -0600 | |
---|---|---|
committer | 2021-02-21 14:53:57 -0600 | |
commit | 15da807a06df54a8809aa77394e52c736a4de9b8 (patch) | |
tree | 46e5919a4718709d139c4b970f32ceae1ed81748 /dev-python/hvac/hvac-0.10.8.ebuild | |
parent | dev-python/pyhcl: HCL configuration parser for python (diff) | |
download | gentoo-15da807a06df54a8809aa77394e52c736a4de9b8.tar.gz gentoo-15da807a06df54a8809aa77394e52c736a4de9b8.tar.bz2 gentoo-15da807a06df54a8809aa77394e52c736a4de9b8.zip |
dev-python/hvac: Hashicorp vault client in python
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-python/hvac/hvac-0.10.8.ebuild')
-rw-r--r-- | dev-python/hvac/hvac-0.10.8.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/hvac/hvac-0.10.8.ebuild b/dev-python/hvac/hvac-0.10.8.ebuild new file mode 100644 index 000000000000..2b000d3a3e0f --- /dev/null +++ b/dev-python/hvac/hvac-0.10.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_8 ) +inherit distutils-r1 + +DESCRIPTION="hashicorp vault client in python" +HOMEPAGE="https://github.com/hvac/hvac" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/hvac/hvac.git" +else + SRC_URI="https://github.com/hvac/hvac/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +COMMON_DEPEND=" + >=dev-python/pyhcl-0.4.4[${PYTHON_USEDEP}] + >=dev-python/requests-2.24.0[${PYTHON_USEDEP}] + >=dev-python/six-1.15.0[${PYTHON_USEDEP}]" +DEPEND="${COMMON_DEPEND} + test? ( + dev-python/flask-sqlalchemy[${PYTHON_USEDEP}] + dev-python/jwcrypto[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/python-jwt[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/semantic_version[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + # https://github.com/python-ldap/python-ldap is not packaged + rm tests/integration_tests/api/auth_methods/test_ldap.py || die + # https://github.com/lepture/authlib is not packaged. + rm tests/integration_tests/api/auth_methods/test_oidc.py || die +} |