net-mgmt/py-pynetbox: Add new port
This package offers direct access to the API of NetBox and allows to manipulate several objects within a NetBox instance. WWW: https://github.com/netbox-community/pynetbox
This commit is contained in:
parent
3d4bc4ad94
commit
b1320aa72b
4 changed files with 50 additions and 0 deletions
|
@ -318,6 +318,7 @@
|
|||
SUBDIR += py-pyIOSXR
|
||||
SUBDIR += py-pyang
|
||||
SUBDIR += py-pyeapi
|
||||
SUBDIR += py-pynetbox
|
||||
SUBDIR += py-pynxos
|
||||
SUBDIR += py-pysmi
|
||||
SUBDIR += py-pysnmp
|
||||
|
|
42
net-mgmt/py-pynetbox/Makefile
Normal file
42
net-mgmt/py-pynetbox/Makefile
Normal file
|
@ -0,0 +1,42 @@
|
|||
PORTNAME= pynetbox
|
||||
DISTVERSION= 6.1.3
|
||||
CATEGORIES= net-mgmt python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= kai@FreeBSD.org
|
||||
COMMENT= NetBox API client library
|
||||
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.20<3:www/py-requests@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}six>=1.0<2:devel/py-six@${PY_FLAVOR}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
|
||||
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
|
||||
NO_ARCH= yes
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
|
||||
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/build/sphinx/html && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
|
||||
"! -name .buildinfo -and ! -name objects.inv")
|
||||
|
||||
# Skip integration tests as they require Docker and a checked out git repository
|
||||
do-test:
|
||||
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -k 'not integration'
|
||||
|
||||
.include <bsd.port.mk>
|
3
net-mgmt/py-pynetbox/distinfo
Normal file
3
net-mgmt/py-pynetbox/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1634760908
|
||||
SHA256 (pynetbox-6.1.3.tar.gz) = e579c5a74ff98dffd2cecb0451b2fffc1924731b56876d7d97b9aaa2b6ef7aa6
|
||||
SIZE (pynetbox-6.1.3.tar.gz) = 58425
|
4
net-mgmt/py-pynetbox/pkg-descr
Normal file
4
net-mgmt/py-pynetbox/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
|||
This package offers direct access to the API of NetBox and allows to manipulate
|
||||
several objects within a NetBox instance.
|
||||
|
||||
WWW: https://github.com/netbox-community/pynetbox
|
Loading…
Reference in a new issue