1 |
commit: 5e4f88c4d75c18ee094dc52b80fd96eaede19c9e |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Mar 26 08:57:42 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Mar 26 08:57:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e4f88c4 |
7 |
|
8 |
dev-python/python_jwt: custom test runner |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836148 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/python_jwt/python_jwt-3.3.2.ebuild | 7 ++++++- |
14 |
1 file changed, 6 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/python_jwt/python_jwt-3.3.2.ebuild b/dev-python/python_jwt/python_jwt-3.3.2.ebuild |
17 |
index d9d91aaa4..cb4ecb79a 100644 |
18 |
--- a/dev-python/python_jwt/python_jwt-3.3.2.ebuild |
19 |
+++ b/dev-python/python_jwt/python_jwt-3.3.2.ebuild |
20 |
@@ -20,6 +20,7 @@ S="${WORKDIR}/${MYPN}-${COMMIT}" |
21 |
LICENSE="MIT" |
22 |
SLOT="0" |
23 |
KEYWORDS="~amd64" |
24 |
+IUSE="test" |
25 |
|
26 |
RDEPEND=">=dev-python/jwcrypto-1.0.0[${PYTHON_USEDEP}]" |
27 |
DEPEND="${RDEPEND}" |
28 |
@@ -31,4 +32,8 @@ BDEPEND=" |
29 |
) |
30 |
" |
31 |
|
32 |
-distutils_enable_tests pytest |
33 |
+RESTRICT="!test? ( test )" |
34 |
+ |
35 |
+python_test() { |
36 |
+ "${EPYTHON}" test/run/run_pyvows.py -v test || die |
37 |
+} |