freebsd-ports/devel/py-dateutil/Makefile
2021-04-06 16:31:07 +02:00

34 lines
1.1 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
PORTNAME= dateutil
PORTVERSION= 2.8.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-${PORTNAME}-${PORTVERSION}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Extensions to the standard Python datetime module
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.3:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hypothesis>=3.30:devel/py-hypothesis@${PY_FLAVOR}
USES= python:3.6+
USE_LOCALE= en_US.UTF-8
USE_PYTHON= autoplist distutils
NO_ARCH= yes
# -W fixes PytestUnknownMarkWarning: Unknown pytest.mark.no_cover
do-test:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TEST_ENV} \
${PYTHON_CMD} -m pytest -v -rs -o addopts= \
-W ignore::pytest.PytestUnknownMarkWarning
.include <bsd.port.mk>