2004-12-26 11:36:52 +01:00
|
|
|
PORTNAME= dnspython
|
2022-03-09 06:04:41 +01:00
|
|
|
PORTVERSION= 2.2.1
|
2022-07-19 20:46:32 +02:00
|
|
|
PORTREVISION= 1
|
2022-03-01 00:31:02 +01:00
|
|
|
PORTEPOCH= 1
|
2004-12-26 11:36:52 +01:00
|
|
|
CATEGORIES= dns python
|
2023-01-11 16:47:15 +01:00
|
|
|
MASTER_SITES= PYPI
|
2004-12-26 11:36:52 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2022-03-01 02:57:18 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2013-03-01 20:32:05 +01:00
|
|
|
COMMENT= DNS toolkit for Python
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.dnspython.org/
|
2004-12-26 11:36:52 +01:00
|
|
|
|
2016-10-27 19:27:56 +02:00
|
|
|
LICENSE= ISCL
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2022-03-09 06:04:41 +01:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.3:devel/py-setuptools_scm@${PY_FLAVOR} \
|
2022-03-01 02:57:18 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
|
|
|
|
|
|
USES= python:3.6+
|
2022-07-19 20:46:32 +02:00
|
|
|
USE_PYTHON= autoplist concurrent cython distutils
|
2019-03-06 19:08:19 +01:00
|
|
|
|
2016-07-29 17:06:11 +02:00
|
|
|
NO_ARCH= yes
|
2012-09-29 22:19:52 +02:00
|
|
|
|
2022-03-01 00:31:02 +01:00
|
|
|
PORTEXAMPLES= ddns.py e164.py mx.py name.py reverse.py reverse_name.py xfr.py \
|
|
|
|
zonediff.py
|
2013-03-01 20:32:05 +01:00
|
|
|
|
2022-03-09 06:04:41 +01:00
|
|
|
OPTIONS_DEFINE= CURIO DNSSEC DOH EXAMPLES IDNA TRIO
|
|
|
|
CURIO_DESC= Coroutine-based library Support
|
|
|
|
DNSSEC_DESC= DNSSEC Support
|
|
|
|
DOH_DESC= DNS over HTTPS Support
|
|
|
|
IDNA_DESC= Internationalizede Domain Names in Application Support
|
|
|
|
TRIO_DESC= TRIO Support
|
|
|
|
CURIO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curio>=1.2:devel/py-curio@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sniffio>=1.1:devel/py-sniffio@${PY_FLAVOR}
|
|
|
|
DNSSEC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=2.6:security/py-cryptography@${PY_FLAVOR}
|
|
|
|
DOH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>0:www/py-h2@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}httpx>=0.21.10:www/py-httpx@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}requests-toolbelt>0:www/py-requests-toolbelt@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
|
|
|
|
# Requires h2>=4.1.0
|
|
|
|
IDNA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>=2.1:dns/py-idna@${PY_FLAVOR}
|
|
|
|
TRIO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}trio>=0.14.0:net/py-trio@${PY_FLAVOR}
|
2020-10-23 22:41:56 +02:00
|
|
|
|
2019-03-06 19:08:19 +01:00
|
|
|
post-install-EXAMPLES-on:
|
2014-02-19 19:42:43 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
|
2011-02-19 13:47:37 +01:00
|
|
|
|
2022-03-01 02:57:18 +01:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} utest.py
|
|
|
|
|
2022-03-01 00:31:02 +01:00
|
|
|
.include <bsd.port.mk>
|