mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
Bug: https://bugs.gentoo.org/836253 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
41 lines
975 B
Bash
41 lines
975 B
Bash
# 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_{8..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
|
|
}
|