summaryrefslogtreecommitdiff
path: root/dev-python/flask-nav
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-08-07 01:40:08 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-08-07 01:40:08 +0000
commit516fca5b2e93a4f6f07190f974e9176ba3f54d77 (patch)
treea317eb3c547434eb2c7393fd8723a3c723acf8a6 /dev-python/flask-nav
parent4c98477e9a410c1a6e6fa62245cdf580581c6cd7 (diff)
downloadbaldeagleos-repo-516fca5b2e93a4f6f07190f974e9176ba3f54d77.tar.gz
baldeagleos-repo-516fca5b2e93a4f6f07190f974e9176ba3f54d77.tar.xz
baldeagleos-repo-516fca5b2e93a4f6f07190f974e9176ba3f54d77.zip
Adding metadata
Diffstat (limited to 'dev-python/flask-nav')
-rw-r--r--dev-python/flask-nav/files/flask-nav-0.6-py310.patch19
-rw-r--r--dev-python/flask-nav/flask-nav-0.6-r4.ebuild33
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/flask-nav/files/flask-nav-0.6-py310.patch b/dev-python/flask-nav/files/flask-nav-0.6-py310.patch
new file mode 100644
index 000000000000..02a06a9c99d9
--- /dev/null
+++ b/dev-python/flask-nav/files/flask-nav-0.6-py310.patch
@@ -0,0 +1,19 @@
+diff --git a/flask_nav/__init__.py b/flask_nav/__init__.py
+index 7c25dfa..5826b9e 100644
+--- a/flask_nav/__init__.py
++++ b/flask_nav/__init__.py
+@@ -1,4 +1,4 @@
+-import collections
++import collections.abc
+ from importlib import import_module
+ import re
+
+@@ -46,7 +46,7 @@ class NavbarRenderingError(Exception):
+ pass
+
+
+-class ElementRegistry(collections.MutableMapping):
++class ElementRegistry(collections.abc.MutableMapping):
+ def __init__(self):
+ self._elems = {}
+
diff --git a/dev-python/flask-nav/flask-nav-0.6-r4.ebuild b/dev-python/flask-nav/flask-nav-0.6-r4.ebuild
new file mode 100644
index 000000000000..b17689c2a2a7
--- /dev/null
+++ b/dev-python/flask-nav/flask-nav-0.6-r4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Easily create navigation for Flask applications."
+HOMEPAGE="https://pythonhosted.org/flask-nav/"
+# docs are missing from PyPI tarballs
+# https://github.com/mbr/flask-nav/pull/12
+SRC_URI="https://github.com/mbr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/dominate[${PYTHON_USEDEP}]
+ dev-python/flask[${PYTHON_USEDEP}]
+ dev-python/markupsafe[${PYTHON_USEDEP}]
+ dev-python/visitor[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs dev-python/alabaster
+
+PATCHES=(
+ # https://github.com/mbr/flask-nav/pull/27
+ "${FILESDIR}/${P}-py310.patch"
+)