summaryrefslogtreecommitdiff
path: root/dev-python/python_jwt/python_jwt-3.3.2.ebuild
blob: e10dddca6834f97e2040fb68b5cedfc3e2aa8b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

COMMIT="3d9747df616d209c07bffe2bcf28b42e92a7d8d4"
MYPN="${PN/_/-}"
PYTHON_COMPAT=( python3_{7,8,9,10} )

inherit distutils-r1

DESCRIPTION="Python module for generating and verifying JSON Web Tokens"
HOMEPAGE="
	https://github.com/davedoesdev/python-jwt
	https://pypi.org/project/python-jwt/
"
SRC_URI="https://github.com/davedoesdev/${MYPN}/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT}.tar.gz"
S="${WORKDIR}/${MYPN}-${COMMIT}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RDEPEND=">=dev-python/jwcrypto-1.0.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="
	test? (
		>=dev-python/coverage-4.0.3[${PYTHON_USEDEP}]
		>=dev-python/gevent-1.2.2[${PYTHON_USEDEP}]
		>=dev-python/pyVows-3.0.0[${PYTHON_USEDEP}]
		>=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
	)
"

RESTRICT="!test? ( test )"

python_test() {
	"${EPYTHON}" test/run/run_pyvows.py -v test || die
}