package/python-yangdoc: new package

To be used with automatic generation of YANG documentation extracted
from sysrepo at build time.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-06-28 12:54:27 +02:00
parent 31a30c736a
commit edaaa33ddc
6 changed files with 40 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
config BR2_PACKAGE_PYTHON_YANGDOC
bool "python-yangdoc"
select BR2_PACKAGE_PYTHON_LIBYANG #runtime
help
YANG documentation viewer based on libyang, similar output to
that of pyang -f jstree. The default output is a standalone
HTML file, called yangtree.html
https://pypi.org/project/yangdoc/
+9
View File
@@ -0,0 +1,9 @@
config BR2_PACKAGE_HOST_PYTHON_YANGDOC
bool "host python-yangdoc"
select BR2_PACKAGE_HOST_PYTHON_LIBYANG #runtime
help
YANG documentation viewer based on libyang, similar output to
that of pyang -f jstree. The default output is a standalone
HTML file, called yangtree.html
https://pypi.org/project/yangdoc/
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/yangdoc/json
md5 9fe18b73870676c7f7f6a9311b531f97 yangdoc-0.4.0.tar.gz
sha256 f7a311c3c58859f33c85342b92947124bf4696015db0816f4324cf1663ebc007 yangdoc-0.4.0.tar.gz
# Locally computed sha256 checksums
sha256 0d642b9805375b12da79c64386bbae4221c7759c2c580ada01d5458ed9c8e37c LICENSE
+15
View File
@@ -0,0 +1,15 @@
################################################################################
#
# python-yangdoc
#
################################################################################
PYTHON_YANGDOC_VERSION = 0.4.0
PYTHON_YANGDOC_SOURCE = yangdoc-$(PYTHON_YANGDOC_VERSION).tar.gz
PYTHON_YANGDOC_SITE = https://files.pythonhosted.org/packages/75/83/a426dcb6f9c56b3cfc70c49040a7ea76c6e9be8ed86026eb6b5942dcb03a
PYTHON_YANGDOC_SETUP_TYPE = setuptools
PYTHON_YANGDOC_LICENSE = MIT
PYTHON_YANGDOC_LICENSE_FILES = LICENSE
HOST_PYTHON_LIBYANG_DEPENDENCIES = host-python-cython host-python-cffi host-python-libyang
$(eval $(host-python-package))