Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hvac/
Date: Sat, 03 Apr 2021 06:59:30
Message-Id: 1617433139.9a4bb8d67b04dbe8f5fbfcd38e809d143f46bf17.mgorny@gentoo
1 commit: 9a4bb8d67b04dbe8f5fbfcd38e809d143f46bf17
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 3 06:58:47 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 3 06:58:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4bb8d6
7
8 dev-python/hvac: Bump to 0.10.9
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hvac/Manifest | 1 +
13 dev-python/hvac/hvac-0.10.9.ebuild | 49 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/hvac/Manifest b/dev-python/hvac/Manifest
17 index 82031b3493c..5cfda85a784 100644
18 --- a/dev-python/hvac/Manifest
19 +++ b/dev-python/hvac/Manifest
20 @@ -1 +1,2 @@
21 DIST hvac-0.10.8.tar.gz 290963 BLAKE2B 539e604d2c0476c3f8bd9bf9e803f2d7c6ea8671cd86ef650a7a3e615fa3461135e956726a869fa8b9c1883b70c11eaa51f28e6d07f284dbb43b51a696dd9958 SHA512 010a851c39bdc4d420343fa42aef5cd7faa073c11bf1507fc563791b8c93e85367b2081d573123acccd467881bccb9f9f33487551cac763d91ee7e5341ea5568
22 +DIST hvac-0.10.9.tar.gz 291045 BLAKE2B 63c48b21e402a1af3f73e5b295061a2f82040cedd412fab69e8759e290a46eb67d1aa0ddaeb40c1638eefbc492441e238cbe4be114093015af6eabd99a0c0a75 SHA512 4af23583110ca4c2c9714f5234daf21ee199c2ac97cde01a220db6f5d89957b95c1e8b84904104e5a96ec39b54cea567973427a73ed7cae5806e794d37403a8d
23
24 diff --git a/dev-python/hvac/hvac-0.10.9.ebuild b/dev-python/hvac/hvac-0.10.9.ebuild
25 new file mode 100644
26 index 00000000000..a9529bd22ad
27 --- /dev/null
28 +++ b/dev-python/hvac/hvac-0.10.9.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{8..9} )
35 +inherit distutils-r1
36 +
37 +DESCRIPTION="hashicorp vault client in python"
38 +HOMEPAGE="https://github.com/hvac/hvac"
39 +
40 +if [[ ${PV} == 9999 ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/hvac/hvac.git"
43 +else
44 + SRC_URI="https://github.com/hvac/hvac/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64"
46 +fi
47 +
48 +LICENSE="Apache-2.0"
49 +SLOT="0"
50 +
51 +BDEPEND="
52 + test? (
53 + dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
54 + dev-python/jwcrypto[${PYTHON_USEDEP}]
55 + dev-python/mock[${PYTHON_USEDEP}]
56 + dev-python/parameterized[${PYTHON_USEDEP}]
57 + dev-python/python-jwt[${PYTHON_USEDEP}]
58 + dev-python/requests-mock[${PYTHON_USEDEP}]
59 + dev-python/semantic_version[${PYTHON_USEDEP}]
60 + dev-python/werkzeug[${PYTHON_USEDEP}]
61 + )"
62 +RDEPEND="
63 + >=dev-python/pyhcl-0.4.4[${PYTHON_USEDEP}]
64 + >=dev-python/requests-2.24.0[${PYTHON_USEDEP}]
65 + >=dev-python/six-1.15.0[${PYTHON_USEDEP}]"
66 +
67 +distutils_enable_tests pytest
68 +
69 +python_test() {
70 + local ignore=(
71 + # ldap_test is not packaged.
72 + tests/integration_tests/api/auth_methods/test_ldap.py
73 + # https://github.com/lepture/authlib is not packaged.
74 + tests/integration_tests/api/auth_methods/test_oidc.py
75 + )
76 +
77 + epytest ${ignore[@]/#/--ignore }
78 +}