Files
guru/dev-python/python_jwt/python_jwt-3.3.2.ebuild
T

40 lines
975 B
Bash
Raw Normal View History

2022-03-18 09:48:19 +01:00
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2022-03-24 14:46:19 +01:00
COMMIT="3d9747df616d209c07bffe2bcf28b42e92a7d8d4"
MYPN="${PN/_/-}"
2022-03-18 09:48:19 +01:00
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/
"
2022-03-24 14:46:19 +01:00
SRC_URI="https://github.com/davedoesdev/${MYPN}/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT}.tar.gz"
S="${WORKDIR}/${MYPN}-${COMMIT}"
2022-03-18 09:48:19 +01:00
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
2022-03-26 09:57:42 +01:00
IUSE="test"
2022-03-18 09:48:19 +01:00
RDEPEND=">=dev-python/jwcrypto-1.0.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
>=dev-python/coverage-4.0.3[${PYTHON_USEDEP}]
2022-03-18 09:48:19 +01:00
>=dev-python/gevent-1.2.2[${PYTHON_USEDEP}]
>=dev-python/pyVows-3.0.0[${PYTHON_USEDEP}]
>=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
)
"
2022-03-26 09:57:42 +01:00
RESTRICT="!test? ( test )"
python_test() {
"${EPYTHON}" test/run/run_pyvows.py -v test || die
}