[arch-commits] Commit in python-flask-nav/repos/community-staging-any (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 23:24:42 UTC 2021


    Date: Friday, December 3, 2021 @ 23:24:42
  Author: felixonmars
Revision: 1064938

archrelease: copy trunk to community-staging-any

Added:
  python-flask-nav/repos/community-staging-any/PKGBUILD
    (from rev 1064937, python-flask-nav/trunk/PKGBUILD)
  python-flask-nav/repos/community-staging-any/python310.patch
    (from rev 1064937, python-flask-nav/trunk/python310.patch)
Deleted:
  python-flask-nav/repos/community-staging-any/PKGBUILD

-----------------+
 PKGBUILD        |   67 +++++++++++++++++++++++++++++-------------------------
 python310.patch |   12 +++++++++
 2 files changed, 49 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 23:24:32 UTC (rev 1064937)
+++ PKGBUILD	2021-12-03 23:24:42 UTC (rev 1064938)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-flask-nav
-pkgver=0.6
-pkgrel=5
-pkgdesc="Easily create navigation for Flask applications"
-url="https://github.com/mbr/flask-nav"
-license=('MIT')
-arch=('any')
-depends=('python-flask' 'python-visitor' 'python-dominate')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mbr/flask-nav/archive/$pkgver.tar.gz")
-sha512sums=('a7930687425a53fac9ad9a7cb65c2e2a759a0c9660189965bf37ea6e9925dd869074d37a283801631b3e6c3391f9f4167e0a36294104f72970e876b5a7a0930c')
-
-build() {
-  cd flask-nav-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd flask-nav-$pkgver
-  python setup.py pytest
-}
-
-package() {
-  cd flask-nav-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-flask-nav/repos/community-staging-any/PKGBUILD (from rev 1064937, python-flask-nav/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-03 23:24:42 UTC (rev 1064938)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-nav
+pkgver=0.6
+pkgrel=6
+pkgdesc="Easily create navigation for Flask applications"
+url="https://github.com/mbr/flask-nav"
+license=('MIT')
+arch=('any')
+depends=('python-flask' 'python-visitor' 'python-dominate')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mbr/flask-nav/archive/$pkgver.tar.gz"
+        python310.patch)
+sha512sums=('a7930687425a53fac9ad9a7cb65c2e2a759a0c9660189965bf37ea6e9925dd869074d37a283801631b3e6c3391f9f4167e0a36294104f72970e876b5a7a0930c'
+            '27841a43aa185e0cd7ddd49bdef7f7d1884f3b8068dcb59e7902d16f02d4920b05e38a83f6873c8d735bc8884c7e02f5cb29c3368474ccd289e9e52686b491e1')
+
+prepare() {
+  cd flask-nav-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
+build() {
+  cd flask-nav-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd flask-nav-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd flask-nav-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-flask-nav/repos/community-staging-any/python310.patch (from rev 1064937, python-flask-nav/trunk/python310.patch)
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-03 23:24:42 UTC (rev 1064938)
@@ -0,0 +1,12 @@
+diff -upr flask-nav-0.6.orig/flask_nav/__init__.py flask-nav-0.6/flask_nav/__init__.py
+--- flask-nav-0.6.orig/flask_nav/__init__.py	2016-11-23 21:21:38.000000000 +0200
++++ flask-nav-0.6/flask_nav/__init__.py	2021-12-04 01:22:38.179319543 +0200
+@@ -46,7 +46,7 @@ class NavbarRenderingError(Exception):
+     pass
+ 
+ 
+-class ElementRegistry(collections.MutableMapping):
++class ElementRegistry(collections.abc.MutableMapping):
+     def __init__(self):
+         self._elems = {}
+ 



More information about the arch-commits mailing list