summaryrefslogtreecommitdiff
path: root/net-mgmt/py-netutils/Makefile
blob: 5efc070d3c36a7f11c2de8982df466c98c43ee97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	netutils
DISTVERSION=	1.14.1
CATEGORIES=	net-mgmt python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	kai@FreeBSD.org
COMMENT=	Common helper functions useful in network automation
WWW=		https://github.com/networktocode/netutils

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}

USES=		python
USE_PYTHON=	autoplist pep517

NO_ARCH=	yes

# There are another two options, "napalm" + "legacycrypt", in "pyproject.toml"
# and are deliberately not added for the time being.  The first one  would lead
# to a circular dependency and the second one is required for Python 3.13+ (not
# in ports tree, yet) which no longer has the deprecated "crypt" module.
OPTIONS_DEFINE=		JSONSCHEMA
OPTIONS_DEFAULT=	JSONSCHEMA

JSONSCHEMA_DESC=	ACL check support
JSONSCHEMA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=4.17.3:devel/py-jsonschema@${PY_FLAVOR}

.include <bsd.port.mk>