[arch-commits] Commit in python-django-allauth/repos/community-any (3 files)

David Runge dvzrv at gemini.archlinux.org
Mon Nov 15 18:49:26 UTC 2021


    Date: Monday, November 15, 2021 @ 18:49:26
  Author: dvzrv
Revision: 1048417

archrelease: copy trunk to community-any

Added:
  python-django-allauth/repos/community-any/PKGBUILD
    (from rev 1048416, python-django-allauth/trunk/PKGBUILD)
  python-django-allauth/repos/community-any/python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch
    (from rev 1048416, python-django-allauth/trunk/python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch)
Deleted:
  python-django-allauth/repos/community-any/PKGBUILD

-------------------------------------------------------+
 PKGBUILD                                              |   96 ++++++++--------
 python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch |   11 +
 2 files changed, 63 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-15 18:49:18 UTC (rev 1048416)
+++ PKGBUILD	2021-11-15 18:49:26 UTC (rev 1048417)
@@ -1,44 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=django-allauth
-pkgname=python-django-allauth
-pkgver=0.45.0
-pkgrel=1
-pkgdesc="Authentication, registration, account management and 3rd party account authentication"
-arch=('any')
-url="https://github.com/pennersr/django-allauth"
-license=('MIT')
-depends=('python-django' 'python-openid' 'python-requests'
-'python-requests-oauthlib' 'python-pyjwt')
-makedepends=('python-setuptools')
-checkdepends=('python-mock' 'python-pytest')
-# tests are not available in pypi sdist:
-# https://github.com/pennersr/django-allauth/issues/2439
-# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-source=("${_name}-${pkgver}.tar.gz::https://github.com/pennersr/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('15c1dc77db7ec0f3223f64301b57fb21485db7c8abedf2dd34f78049f17e7c0c9aa434a207cfb2bd938ef52121aeb59ca3e01a8e728a3a54152540c6838bc40c')
-b2sums=('1dea24d4760e0dc8230fd926c8360b67c675b9577cc8089c4cade40825d4a201108dff93c076872f3958f6bc8c73968f34dbef1ee87a8355aa449aa7f8b5b12b')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  python manage.py test allauth
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-django-allauth/repos/community-any/PKGBUILD (from rev 1048416, python-django-allauth/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-15 18:49:26 UTC (rev 1048417)
@@ -0,0 +1,52 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=django-allauth
+pkgname=python-django-allauth
+pkgver=0.46.0
+pkgrel=1
+pkgdesc="Authentication, registration, account management and 3rd party account authentication"
+arch=('any')
+url="https://github.com/pennersr/django-allauth"
+license=('MIT')
+depends=('python-django' 'python-openid' 'python-requests'
+'python-requests-oauthlib' 'python-pyjwt')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
+# tests are not available in pypi sdist:
+# https://github.com/pennersr/django-allauth/issues/2439
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=(
+  "${_name}-${pkgver}.tar.gz::https://github.com/pennersr/${_name}/archive/${pkgver}.tar.gz"
+  "${pkgname}-0.46.0-python-pyjwt-2.2.0.patch"
+)
+sha512sums=('cb7f2195861fcd54cb8f9aa1b0af3915dc038a3cf4fff3d0e0c74ee5602f4dbdc386a9583a1d3814d398fa5c67c888aa3a2d1ae9525581ff91814cad023d4e17'
+            '57671f180534c7372534077f0ae74de23afd99ecb8e39767fb65134133c88863e6f6da64ca3e62ed91880a811b235ec79f7e7bab30da4a4e70c61d949d2a34b3')
+b2sums=('67fc03fa8e2377bc87a9a52cd4f51cb33be3d91ba9079a82150ff15059efd1e74a49b3b4c17d879a0528a287e29d8747fbc9e243c865c0e3ee9c81afe0ecaa3f'
+        '18c4749d2ba8334b4ba060499a42c15fe0ad925ec4480fece7a934302a05abf0a44c3674f472ea953dc31323e30216b036603b72dff2c0ceb4f4ab7be6e10448')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+
+  cd "$pkgname-$pkgver"
+  # remove unused jwt.decode() parameter
+  # https://github.com/pennersr/django-allauth/issues/2977
+  patch -Np1 -i ../"${pkgname}-0.46.0-python-pyjwt-2.2.0.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  python manage.py test allauth
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}

Copied: python-django-allauth/repos/community-any/python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch (from rev 1048416, python-django-allauth/trunk/python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch)
===================================================================
--- python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch	                        (rev 0)
+++ python-django-allauth-0.46.0-python-pyjwt-2.2.0.patch	2021-11-15 18:49:26 UTC (rev 1048417)
@@ -0,0 +1,11 @@
+diff -ruN a/allauth/socialaccount/providers/apple/views.py b/allauth/socialaccount/providers/apple/views.py
+--- a/allauth/socialaccount/providers/apple/views.py	2021-11-15 17:23:50.000000000 +0100
++++ b/allauth/socialaccount/providers/apple/views.py	2021-11-15 19:38:17.285418437 +0100
+@@ -68,7 +68,6 @@
+                 id_token,
+                 public_key,
+                 algorithms=["RS256"],
+-                verify=True,
+                 audience=allowed_auds,
+                 issuer="https://appleid.apple.com",
+             )



More information about the arch-commits mailing list