dev-python/python_jwt: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-03-18 09:48:19 +01:00
parent 37e427ea5b
commit 4cd66574ad
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST python_jwt-3.3.2.tar.gz 266223 BLAKE2B 42bda6e45e33e15811e0fcdd613147c2fba0bd4115190e97df41ccb0ea4dbec3d132fab0743ed88aca524e19453cef66036759aaf880a3f3df2aba1459475201 SHA512 7ca5f8f211b4b12b20b2b3875b5811dca47d7f552d7d625e423d0ba488cdb9fe76a04168a91edb17cd3b2a381e00d55b1fc797e81e25f6c20d4358beb2284be7

View File

@@ -0,0 +1,22 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Module for generating and verifying JSON Web Tokens.
Note: From version 2.0.1 the namespace has changed from jwt to python_jwt, in order to avoid conflict with PyJWT.
Note: Versions 1.0.0 and later fix a vulnerability in JSON Web Token verification so please upgrade if you're using this functionality. The API has changed so you will need to update your application. verify_jwt now requires you to specify which signature algorithms are allowed.
Uses jwcrypto to do the heavy lifting.
Supports RS256, RS384, RS512, PS256, PS384, PS512, HS256, HS384, HS512, ES256, ES384, ES512, ES256K, EdDSA and none signature algorithms.
Unit tests, including tests for interoperability with jose.
Supports Python 2,7 and 3.6+. Note: generate_jwt returns the token as a Unicode string, even on Python 2.7.
</longdescription>
<upstream>
<remote-id type="github">davedoesdev/python-jwt</remote-id>
<remote-id type="pypi">python-jwt</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND=">=dev-python/jwcrypto-1.0.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
>=dev-python/gevent-1.2.2[${PYTHON_USEDEP}]
>=dev-python/pyVows-3.0.0[${PYTHON_USEDEP}]
>=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest