PORTNAME= time-machine # See XXX below DISTVERSION= 3.5.0 PORTREVISION= 0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/1}-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Travel through time in your Python tests WWW= https://github.com/adamchainz/time-machine LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0.40.0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR} USES= python USE_PYTHON= autoplist pep517 # XXX: remove this target if the version of devel/py-setuptools is >= 77 post-patch: ${REINPLACE_CMD} \ -e '/^license-files/d' \ -e 's/^\(license = \)\("MIT"\)/\1{ text = \2 }/1' \ -e 's/\(setuptools>=\)77/\163/1' \ ${WRKSRC}/pyproject.toml post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_time_machine${PYTHON_TAG}.so .include