Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyjwt/
Date: Tue, 22 Dec 2020 20:06:19
Message-Id: 1608667566.4c844e5407fe34fff6af2aef8615d2aef4cf228f.mgorny@gentoo
1 commit: 4c844e5407fe34fff6af2aef8615d2aef4cf228f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 19:52:58 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 20:06:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c844e54
7
8 dev-python/pyjwt: Bump to 2.0.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyjwt/Manifest | 1 +
13 dev-python/pyjwt/pyjwt-2.0.0.ebuild | 41 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest
17 index 83d65a7066a..f6338047ad6 100644
18 --- a/dev-python/pyjwt/Manifest
19 +++ b/dev-python/pyjwt/Manifest
20 @@ -1 +1,2 @@
21 DIST PyJWT-1.7.1.tar.gz 41979 BLAKE2B 5604b309838b2dfb2f95e18e291c43703954664aa8acb7439072f002c1c8a1e49ff2c21d907be77a4d2f86e695ec71970d550aad2541252ac85bd7133e300b28 SHA512 70cd38127b6848933992c8b88303725ef71bfb430ad42eb63247e549b0bdab2a194137349d43ab02a1c97212dbc89f447ee3f0c5403dd14632b8b4b6b9235fc4
22 +DIST PyJWT-2.0.0.tar.gz 56981 BLAKE2B e093bf23beb86a287e494018aed6bd6870d5923697b6502e4269f0b991b28c4ea6a53261b88789b0786b59e03b3d4eb763006becf0666921a81d0528c7677af5 SHA512 1831c93f100cd481e2ea80e23ff9f5114806cc493efc1c42ec6ff3ecc07e716d9ba2557b0b66fd8413946d166eebc1a44c453ec5407dfeef0529d222c9187e45
23
24 diff --git a/dev-python/pyjwt/pyjwt-2.0.0.ebuild b/dev-python/pyjwt/pyjwt-2.0.0.ebuild
25 new file mode 100644
26 index 00000000000..003ac25f08b
27 --- /dev/null
28 +++ b/dev-python/pyjwt/pyjwt-2.0.0.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..9} )
36 +
37 +inherit distutils-r1 optfeature
38 +
39 +MY_PN="PyJWT"
40 +DESCRIPTION="JSON Web Token implementation in Python"
41 +HOMEPAGE="https://github.com/progrium/pyjwt https://pypi.org/project/PyJWT/"
42 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
43 +S="${WORKDIR}"/${MY_PN}-${PV}
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +
49 +RDEPEND=""
50 +DEPEND="
51 + test? (
52 + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}]
53 + )"
54 +
55 +distutils_enable_tests pytest
56 +
57 +python_prepare_all() {
58 + find . -name '__pycache__' -prune -exec rm -rf {} + || die
59 + find . -name '*.pyc' -delete || die
60 +
61 + # enables coverage, we don't need that
62 + rm setup.cfg || die
63 +
64 + distutils-r1_python_prepare_all
65 +}
66 +
67 +pkg_postinst() {
68 + elog "Available optional features:"
69 + optfeature "cryptography" dev-python/cryptography
70 +}