diff options
Diffstat (limited to 'dev-python/pyjwt')
| -rw-r--r-- | dev-python/pyjwt/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyjwt/metadata.xml | 2 | ||||
| -rw-r--r-- | dev-python/pyjwt/pyjwt-2.0.0.ebuild | 41 |
3 files changed, 43 insertions, 1 deletions
diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest index 83d65a7066a8..f6338047ad6a 100644 --- a/dev-python/pyjwt/Manifest +++ b/dev-python/pyjwt/Manifest @@ -1 +1,2 @@ DIST PyJWT-1.7.1.tar.gz 41979 BLAKE2B 5604b309838b2dfb2f95e18e291c43703954664aa8acb7439072f002c1c8a1e49ff2c21d907be77a4d2f86e695ec71970d550aad2541252ac85bd7133e300b28 SHA512 70cd38127b6848933992c8b88303725ef71bfb430ad42eb63247e549b0bdab2a194137349d43ab02a1c97212dbc89f447ee3f0c5403dd14632b8b4b6b9235fc4 +DIST PyJWT-2.0.0.tar.gz 56981 BLAKE2B e093bf23beb86a287e494018aed6bd6870d5923697b6502e4269f0b991b28c4ea6a53261b88789b0786b59e03b3d4eb763006becf0666921a81d0528c7677af5 SHA512 1831c93f100cd481e2ea80e23ff9f5114806cc493efc1c42ec6ff3ecc07e716d9ba2557b0b66fd8413946d166eebc1a44c453ec5407dfeef0529d222c9187e45 diff --git a/dev-python/pyjwt/metadata.xml b/dev-python/pyjwt/metadata.xml index 58a89fcf955e..b79fb958d331 100644 --- a/dev-python/pyjwt/metadata.xml +++ b/dev-python/pyjwt/metadata.xml @@ -7,7 +7,7 @@ </maintainer> <upstream> <remote-id type="pypi">PyJWT</remote-id> - <remote-id type="github">progrium/pyjwt</remote-id> + <remote-id type="github">jpadilla/pyjwt</remote-id> <remote-id type="cpe">cpe:/a:pyjwt_project:pyjwt</remote-id> </upstream> <origin>gentoo-staging</origin> diff --git a/dev-python/pyjwt/pyjwt-2.0.0.ebuild b/dev-python/pyjwt/pyjwt-2.0.0.ebuild new file mode 100644 index 000000000000..a6d2a4170fbf --- /dev/null +++ b/dev-python/pyjwt/pyjwt-2.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 optfeature + +MY_PN="PyJWT" +DESCRIPTION="JSON Web Token implementation in Python" +HOMEPAGE="https://github.com/jpadilla/pyjwt/ https://pypi.org/project/PyJWT/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}"/${MY_PN}-${PV} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="" +DEPEND=" + test? ( + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_prepare_all() { + find . -name '__pycache__' -prune -exec rm -rf {} + || die + find . -name '*.pyc' -delete || die + + # enables coverage, we don't need that + rm setup.cfg || die + + distutils-r1_python_prepare_all +} + +pkg_postinst() { + elog "Available optional features:" + optfeature "cryptography" dev-python/cryptography +} |
