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/, dev-python/pyjwt/files/
Date: Fri, 13 May 2022 10:59:25
Message-Id: 1652439540.e9e9dd9175fdbb9c02944b47a762111ac3a8d599.mgorny@gentoo
1 commit: e9e9dd9175fdbb9c02944b47a762111ac3a8d599
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 10:59:00 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 10:59:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9e9dd91
7
8 dev-python/pyjwt: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyjwt/Manifest | 2 -
13 dev-python/pyjwt/files/pyjwt-1.7.1-ecdsa-fix.patch | 27 -----------
14 dev-python/pyjwt/pyjwt-1.7.1-r1.ebuild | 55 ----------------------
15 dev-python/pyjwt/pyjwt-2.3.0.ebuild | 29 ------------
16 4 files changed, 113 deletions(-)
17
18 diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest
19 index 5488502fb3b8..dca287789b78 100644
20 --- a/dev-python/pyjwt/Manifest
21 +++ b/dev-python/pyjwt/Manifest
22 @@ -1,3 +1 @@
23 -DIST PyJWT-1.7.1.tar.gz 41979 BLAKE2B 5604b309838b2dfb2f95e18e291c43703954664aa8acb7439072f002c1c8a1e49ff2c21d907be77a4d2f86e695ec71970d550aad2541252ac85bd7133e300b28 SHA512 70cd38127b6848933992c8b88303725ef71bfb430ad42eb63247e549b0bdab2a194137349d43ab02a1c97212dbc89f447ee3f0c5403dd14632b8b4b6b9235fc4
24 -DIST PyJWT-2.3.0.tar.gz 62279 BLAKE2B 0f4cea0cee2461e5f829b2bba40fb6d2646d5bccaa8e6b2d26ba7379386a64dc9f5204ea607edec98fc0102facf3cc5595e5e97523e9a567e0cf0b072542a3f5 SHA512 c6a1d8c3ce87d2122aa4ce4e19c5d2683aeffae6fb29b20fa17e2dfb1a07faf721beb8ca390d3acdeb85a1476025ca5af4fcdb1019f84c8c1bf229246a7aafe3
25 DIST PyJWT-2.4.0.tar.gz 66327 BLAKE2B bc78ceebe3fedd4216420c34034de96dc6af488b4b50d20a03073753cfe94d059cda3e118f79cc3718253f56bb977b5b86543d1cd1ab7346a4095d0c2c6855b2 SHA512 6c60afe62f9341c0fd889be227cd9e44260bc88696a93d0c3398547e159001f04e402d207d2230641f0f3d37cfd7e6f9e50a42dadfb011d7087c32a864c792a4
26
27 diff --git a/dev-python/pyjwt/files/pyjwt-1.7.1-ecdsa-fix.patch b/dev-python/pyjwt/files/pyjwt-1.7.1-ecdsa-fix.patch
28 deleted file mode 100644
29 index ebd9236c7994..000000000000
30 --- a/dev-python/pyjwt/files/pyjwt-1.7.1-ecdsa-fix.patch
31 +++ /dev/null
32 @@ -1,27 +0,0 @@
33 -From 36a3f9bd0cc7029e5150b1931efbd62da975e8b9 Mon Sep 17 00:00:00 2001
34 -From: StefanBruens <stefan.bruens@×××××××××××.de>
35 -Date: Mon, 21 Oct 2019 02:07:19 +0200
36 -Subject: [PATCH] Catch BadSignatureError raised by ecdsa 0.13.3 on
37 - verification errors (#448)
38 -
39 -The new ecdsa no longer uses AssertionError when the signature is too long.
40 -This happens in the test suite, where "123" is appended to the signature.
41 -
42 -Fixes #447
43 ----
44 - jwt/contrib/algorithms/py_ecdsa.py | 4 +++-
45 - 1 file changed, 3 insertions(+), 1 deletion(-)
46 -
47 -diff --git a/jwt/contrib/algorithms/py_ecdsa.py b/jwt/contrib/algorithms/py_ecdsa.py
48 -index bf0dea5..f1170a6 100644
49 ---- a/jwt/contrib/algorithms/py_ecdsa.py
50 -+++ b/jwt/contrib/algorithms/py_ecdsa.py
51 -@@ -56,5 +56,7 @@ def verify(self, msg, key, sig):
52 - try:
53 - return key.verify(sig, msg, hashfunc=self.hash_alg,
54 - sigdecode=ecdsa.util.sigdecode_string)
55 -- except AssertionError:
56 -+ # ecdsa <= 0.13.2 raises AssertionError on too long signatures,
57 -+ # ecdsa >= 0.13.3 raises BadSignatureError for verification errors.
58 -+ except (AssertionError, ecdsa.BadSignatureError):
59 - return False
60
61 diff --git a/dev-python/pyjwt/pyjwt-1.7.1-r1.ebuild b/dev-python/pyjwt/pyjwt-1.7.1-r1.ebuild
62 deleted file mode 100644
63 index 1849483dffc3..000000000000
64 --- a/dev-python/pyjwt/pyjwt-1.7.1-r1.ebuild
65 +++ /dev/null
66 @@ -1,55 +0,0 @@
67 -# Copyright 1999-2021 Gentoo Authors
68 -# Distributed under the terms of the GNU General Public License v2
69 -
70 -EAPI=7
71 -
72 -DISTUTILS_USE_SETUPTOOLS=rdepend
73 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
74 -
75 -inherit distutils-r1 optfeature
76 -
77 -MY_PN="PyJWT"
78 -DESCRIPTION="JSON Web Token implementation in Python"
79 -HOMEPAGE="https://github.com/progrium/pyjwt https://pypi.org/project/PyJWT/"
80 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
81 -S="${WORKDIR}"/${MY_PN}-${PV}
82 -
83 -LICENSE="MIT"
84 -SLOT="0"
85 -KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux"
86 -
87 -RDEPEND=""
88 -DEPEND="
89 - test? (
90 - >=dev-python/cryptography-1.4.0[${PYTHON_USEDEP}]
91 - )"
92 -
93 -distutils_enable_tests pytest
94 -
95 -python_prepare_all() {
96 - find . -name '__pycache__' -prune -exec rm -rf {} + || die
97 - find . -name '*.pyc' -delete || die
98 -
99 - # enables coverage, we don't need that
100 - rm setup.cfg || die
101 - # kill tests using pycrypto that break with pycryptodome
102 - sed -i -e '/has_pycrypto/s:True:False:' \
103 - tests/contrib/test_algorithms.py || die
104 -
105 - local PATCHES=(
106 - "${FILESDIR}"/pyjwt-1.7.1-ecdsa-fix.patch
107 - )
108 -
109 - distutils-r1_python_prepare_all
110 -}
111 -
112 -python_test() {
113 - pytest -vv || die "Tests fail with ${EPYTHON}"
114 -}
115 -
116 -pkg_postinst() {
117 - optfeature "cryptography" dev-python/cryptography
118 - optfeature "flake8" dev-python/flake8{,-import-order}
119 -
120 - ewarn "flake8 feature requires 'pep8-naming' which is not packaged yet"
121 -}
122
123 diff --git a/dev-python/pyjwt/pyjwt-2.3.0.ebuild b/dev-python/pyjwt/pyjwt-2.3.0.ebuild
124 deleted file mode 100644
125 index 6b5ead763d7d..000000000000
126 --- a/dev-python/pyjwt/pyjwt-2.3.0.ebuild
127 +++ /dev/null
128 @@ -1,29 +0,0 @@
129 -# Copyright 1999-2021 Gentoo Authors
130 -# Distributed under the terms of the GNU General Public License v2
131 -
132 -EAPI=8
133 -
134 -PYTHON_COMPAT=( python3_{8..10} )
135 -inherit distutils-r1 optfeature
136 -
137 -MY_PN="PyJWT"
138 -DESCRIPTION="JSON Web Token implementation in Python"
139 -HOMEPAGE="https://github.com/jpadilla/pyjwt/ https://pypi.org/project/PyJWT/"
140 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
141 -S="${WORKDIR}"/${MY_PN}-${PV}
142 -
143 -LICENSE="MIT"
144 -SLOT="0"
145 -KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
146 -
147 -RDEPEND="!dev-python/python-jwt"
148 -BDEPEND="
149 - test? (
150 - >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}]
151 - )"
152 -
153 -distutils_enable_tests pytest
154 -
155 -pkg_postinst() {
156 - optfeature "cryptography" dev-python/cryptography
157 -}