mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/python-jwt: JSON Web Token library for python 3
Signed-off-by: William Hubbs <williamh@gentoo.org>
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-1.2.0.tar.gz 22578 BLAKE2B e8ed53c87f55f829e134955d03efd4c4a8e34e1eaa03f20a644db71d7b79d21564344a856206ad72aa5e0fa8cb8fa799d710a9669850c50c7aa588bfa59d7962 SHA512 c663e3fbb6476ae60b485e497f898aed2db84aa10c677ef2fc46160b355ea51af31ed259117fe20937809068e6c586e4f48b4e217722a47231f19be59f25295c
|
||||
12
dev-python/python-jwt/metadata.xml
Normal file
12
dev-python/python-jwt/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>williamh@gentoo.org</email>
|
||||
<name>William Hubbs</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>chutzpah@gentoo.org</email>
|
||||
<name>Patrick McLean</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
31
dev-python/python-jwt/python-jwt-1.2.0.ebuild
Normal file
31
dev-python/python-jwt/python-jwt-1.2.0.ebuild
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_8 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="JSON Web Token library for python 3"
|
||||
HOMEPAGE="https://github.com/GehirnInc/python-jwt"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hvac/hvac.git"
|
||||
else
|
||||
SRC_URI="https://github.com/GehirnInc/python-jwt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/freezegun[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e 's/^addopts =.*/addopts = jwt/' setup.cfg || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
Reference in New Issue
Block a user