git: 6b5008371a7c - main - devel/nox: New port: Flexible test automation

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 18:09:31 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b5008371a7c98c09780203bfc4d0e1e49b5b9a1

commit 6b5008371a7c98c09780203bfc4d0e1e49b5b9a1
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-05 17:45:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-05 18:09:28 +0000

    devel/nox: New port: Flexible test automation
---
 devel/Makefile      |  1 +
 devel/nox/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/nox/distinfo  |  3 +++
 devel/nox/pkg-descr |  3 +++
 4 files changed, 36 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 06b0f2407e0e..e1d1e785f8bf 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1616,6 +1616,7 @@
     SUBDIR += node-thrift
     SUBDIR += notcurses
     SUBDIR += notify-sharp
+    SUBDIR += nox
     SUBDIR += npth
     SUBDIR += nsgenbind
     SUBDIR += nspr
diff --git a/devel/nox/Makefile b/devel/nox/Makefile
new file mode 100644
index 000000000000..fbb5c33c813b
--- /dev/null
+++ b/devel/nox/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	nox
+PORTVERSION=	2022.11.21
+CATEGORIES=	devel python
+#MASTER_SITES=	PYPI # no tests
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Flexible test automation
+WWW=		https://nox.thea.codes/en/stable/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=1.9.4<3.0:devel/py-argcomplete@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}colorlog>=2.6.1<7.0.0:devel/py-colorlog@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=20.9:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}virtualenv>=14:devel/py-virtualenv@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python:3.8+
+USE_PYTHON=	pep517 autoplist pytest # tests fail to run, see https://github.com/wntrblm/nox/issues/689
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	wntrblm
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/nox/distinfo b/devel/nox/distinfo
new file mode 100644
index 000000000000..22220ec3434d
--- /dev/null
+++ b/devel/nox/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1675617801
+SHA256 (wntrblm-nox-2022.11.21_GH0.tar.gz) = dbff1ce37b5bb0ead4e1ed3e4a2a2527e0dd15e72c9826437c08b73cc3b14a45
+SIZE (wntrblm-nox-2022.11.21_GH0.tar.gz) = 3983862
diff --git a/devel/nox/pkg-descr b/devel/nox/pkg-descr
new file mode 100644
index 000000000000..b1a6aec9d239
--- /dev/null
+++ b/devel/nox/pkg-descr
@@ -0,0 +1,3 @@
+nox is a command-line tool that automates testing in multiple Python
+environments, similar to tox. Unlike tox, Nox uses a standard Python
+file for configuration.