diff options
Diffstat (limited to 'dev-python/flask-nav')
-rw-r--r-- | dev-python/flask-nav/Manifest | 2 | ||||
-rw-r--r-- | dev-python/flask-nav/files/flask-nav-0.6-py310.patch | 19 | ||||
-rw-r--r-- | dev-python/flask-nav/flask-nav-0.6-r4.ebuild | 33 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/flask-nav/Manifest b/dev-python/flask-nav/Manifest index c139b4d11b06..9716160a02df 100644 --- a/dev-python/flask-nav/Manifest +++ b/dev-python/flask-nav/Manifest @@ -1,3 +1,5 @@ +AUX flask-nav-0.6-py310.patch 487 BLAKE2B 9526db877a101895fdebc57a435612a97c7f8355ad7664fb01f36965697b785798bc206e050f5b3673335302bd55de80a21215163b92917516868b4202360301 SHA512 dbd5c8e5b3640c15048fc4b432c879535a4373b53a1e3e7d8eb8ca6cf7c3d6f69670407b7bf2b01d42fcb99d19c587e71c5c3e17885f8baf4d3061f9db7fbd55 DIST flask-nav-0.6.tar.gz 12270 BLAKE2B eff90b6fc08629139012e2d920b4d464ed06954040a5e97636a7aa4d59d11654839460ef52477cfcec967bd774d942028a53675d682e850f08f6359c5cfbb54e SHA512 a7930687425a53fac9ad9a7cb65c2e2a759a0c9660189965bf37ea6e9925dd869074d37a283801631b3e6c3391f9f4167e0a36294104f72970e876b5a7a0930c EBUILD flask-nav-0.6-r2.ebuild 737 BLAKE2B fdf1beee98d27435a5fdcae7b5ff2dd54871f0c71115237504015515230eb5105ac9f4463a819cf97950e82cbdab936f5d4c1da53badff34003f0a70b834d4e8 SHA512 2d2e53cb27bda2a46637f22908f6863b5bc7048492b12edf520952297fbec659b9233daa27a00016041cb73c3f1c3d95a480be431d457ef3dc27a2095dfd6f3b +EBUILD flask-nav-0.6-r4.ebuild 826 BLAKE2B 508b811a9fb5388b83b586f33db3265ad78eee46b0aecc66bc89a9b4f949997c83661c3cec30949a60e9a7e2c4da83033d1e998e06cb0466cf1bf41862b4effe SHA512 21428615813c8f73b7e38da96d96e7a58ea81d7b60dbd9830dd007bc23158d093a70b6f9e5b85c0d3943365f8afb200c9bce668187e163d69872c76987e69238 MISC metadata.xml 455 BLAKE2B 3c8ab276f080f4b79d89545bb504e70006853606aad1af17305bd8dcbfc1c2b28bd75f849e338751f0f772f23678e39d03a5c2229bcb0b71ac71b0896f31accb SHA512 4ad4fd94dfdf7ccfd1cab7e81270a7df59831d9532522a2808e695747b1165b10123588530cf1a1bd08fa5822a9cb7d6e071c20ca5396359b91d5648935e2562 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..c8f197283d11 --- /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=( pypy3 python3_{7..10} ) + +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" +) |