diff options
Diffstat (limited to 'dev-python/flask-nav')
| -rw-r--r-- | dev-python/flask-nav/Manifest | 1 | ||||
| -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-r5.ebuild | 41 | ||||
| -rw-r--r-- | dev-python/flask-nav/metadata.xml | 13 |
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/flask-nav/Manifest b/dev-python/flask-nav/Manifest new file mode 100644 index 000000000000..610ccc8eb327 --- /dev/null +++ b/dev-python/flask-nav/Manifest @@ -0,0 +1 @@ +DIST flask-nav-0.6.gh.tar.gz 12270 BLAKE2B eff90b6fc08629139012e2d920b4d464ed06954040a5e97636a7aa4d59d11654839460ef52477cfcec967bd774d942028a53675d682e850f08f6359c5cfbb54e SHA512 a7930687425a53fac9ad9a7cb65c2e2a759a0c9660189965bf37ea6e9925dd869074d37a283801631b3e6c3391f9f4167e0a36294104f72970e876b5a7a0930c 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-r5.ebuild b/dev-python/flask-nav/flask-nav-0.6-r5.ebuild new file mode 100644 index 000000000000..ed514fd326ed --- /dev/null +++ b/dev-python/flask-nav/flask-nav-0.6-r5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Easily create navigation for Flask applications" +HOMEPAGE=" + https://pythonhosted.org/flask-nav/ + https://github.com/mbr/flask-nav/ + https://pypi.org/project/flask-nav/ +" +# docs are missing from PyPI tarballs +# https://github.com/mbr/flask-nav/pull/12 +SRC_URI=" + https://github.com/mbr/flask-nav/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~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" +) diff --git a/dev-python/flask-nav/metadata.xml b/dev-python/flask-nav/metadata.xml new file mode 100644 index 000000000000..592a999bee9d --- /dev/null +++ b/dev-python/flask-nav/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sbraz@gentoo.org</email> + <name>Louis Sautier</name> + </maintainer> + <stabilize-allarches /> + <upstream> + <bugs-to>https://github.com/mbr/flask-nav/issues</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
