From nobody Thu Oct 21 15:34:18 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9AE80180024C; Thu, 21 Oct 2021 15:34:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HZs3H1fJlz3HrS; Thu, 21 Oct 2021 15:34:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0E4151DC1D; Thu, 21 Oct 2021 15:34:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19LFYIMf054881; Thu, 21 Oct 2021 15:34:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19LFYIAJ054880; Thu, 21 Oct 2021 15:34:18 GMT (envelope-from git) Date: Thu, 21 Oct 2021 15:34:18 GMT Message-Id: <202110211534.19LFYIAJ054880@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: b1320aa72b30 - main - net-mgmt/py-pynetbox: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b1320aa72b302dc02838cdcb62fe1e944f55e37d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=b1320aa72b302dc02838cdcb62fe1e944f55e37d commit b1320aa72b302dc02838cdcb62fe1e944f55e37d Author: Kai Knoblich AuthorDate: 2021-10-21 15:30:11 +0000 Commit: Kai Knoblich CommitDate: 2021-10-21 15:32:12 +0000 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 --- net-mgmt/Makefile | 1 + net-mgmt/py-pynetbox/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ net-mgmt/py-pynetbox/distinfo | 3 +++ net-mgmt/py-pynetbox/pkg-descr | 4 ++++ 4 files changed, 50 insertions(+) diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index c2978028b5a4..ceb074d213b8 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -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 diff --git a/net-mgmt/py-pynetbox/Makefile b/net-mgmt/py-pynetbox/Makefile new file mode 100644 index 000000000000..67b8d78853de --- /dev/null +++ b/net-mgmt/py-pynetbox/Makefile @@ -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 diff --git a/net-mgmt/py-pynetbox/distinfo b/net-mgmt/py-pynetbox/distinfo new file mode 100644 index 000000000000..60c949709061 --- /dev/null +++ b/net-mgmt/py-pynetbox/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1634760908 +SHA256 (pynetbox-6.1.3.tar.gz) = e579c5a74ff98dffd2cecb0451b2fffc1924731b56876d7d97b9aaa2b6ef7aa6 +SIZE (pynetbox-6.1.3.tar.gz) = 58425 diff --git a/net-mgmt/py-pynetbox/pkg-descr b/net-mgmt/py-pynetbox/pkg-descr new file mode 100644 index 000000000000..7fd55e5b4009 --- /dev/null +++ b/net-mgmt/py-pynetbox/pkg-descr @@ -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