mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-10 12:50:46 -04:00
dev-python/python_jwt: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-python/python_jwt/Manifest
Normal file
1
dev-python/python_jwt/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST python_jwt-3.3.2.tar.gz 266223 BLAKE2B 42bda6e45e33e15811e0fcdd613147c2fba0bd4115190e97df41ccb0ea4dbec3d132fab0743ed88aca524e19453cef66036759aaf880a3f3df2aba1459475201 SHA512 7ca5f8f211b4b12b20b2b3875b5811dca47d7f552d7d625e423d0ba488cdb9fe76a04168a91edb17cd3b2a381e00d55b1fc797e81e25f6c20d4358beb2284be7
|
||||
22
dev-python/python_jwt/metadata.xml
Normal file
22
dev-python/python_jwt/metadata.xml
Normal 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>
|
||||
31
dev-python/python_jwt/python_jwt-3.3.2.ebuild
Normal file
31
dev-python/python_jwt/python_jwt-3.3.2.ebuild
Normal 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
|
||||
Reference in New Issue
Block a user