[packages/python-jose] - added requirements patch (disable ecdsa pinning)
qboosh
qboosh at pld-linux.org
Mon Nov 20 07:57:23 CET 2023
commit a549c7b39933d17b91dc93c8c6c2042dd188b604
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Nov 20 06:31:52 2023 +0100
- added requirements patch (disable ecdsa pinning)
python-jose-requirements.patch | 11 +++++++++++
python-jose.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/python-jose.spec b/python-jose.spec
index 7911fa0..9a8d4f2 100644
--- a/python-jose.spec
+++ b/python-jose.spec
@@ -16,6 +16,7 @@ Group: Libraries/Python
#Source0Download: https://pypi.org/simple/python-jose/
Source0: https://files.pythonhosted.org/packages/source/p/python-jose/python-jose-%{version}.tar.gz
# Source0-md5: 382a4da9ec39a3fb872fd1cf672b8a57
+Patch0: %{name}-requirements.patch
URL: https://pypi.org/project/python-jose/
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
@@ -95,6 +96,7 @@ Dokumentacja API modułu Pythona jose.
%prep
%setup -q -n python-jose-%{version}
+%patch0 -p1
# Sphinx 1.3+ ships napoleon extension in sphinx.ext namespace
%{__sed} -i -e 's/sphinxcontrib\.napoleon/sphinx.ext.napoleon/' docs/conf.py
diff --git a/python-jose-requirements.patch b/python-jose-requirements.patch
new file mode 100644
index 0000000..f5b4237
--- /dev/null
+++ b/python-jose-requirements.patch
@@ -0,0 +1,11 @@
+--- python-jose-3.2.0/setup.py.orig 2020-07-30 00:46:23.000000000 +0200
++++ python-jose-3.2.0/setup.py 2023-11-20 06:28:27.732542925 +0100
+@@ -38,7 +38,7 @@ extras_require = {
+ 'pycrypto': ['pycrypto >=2.6.0, <2.7.0'] + pyasn1,
+ 'pycryptodome': ['pycryptodome >=3.3.1, <4.0.0'] + pyasn1,
+ }
+-legacy_backend_requires = ['ecdsa <0.15', 'rsa'] + pyasn1
++legacy_backend_requires = ['ecdsa', 'rsa'] + pyasn1
+ install_requires = ['six <2.0']
+
+ # TODO: work this into the extras selection instead.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-jose.git/commitdiff/a549c7b39933d17b91dc93c8c6c2042dd188b604
More information about the pld-cvs-commit
mailing list