diff --git a/devel/py-time-machine/Makefile b/devel/py-time-machine/Makefile index b9b0de08eb64..65bf18f1f059 100644 --- a/devel/py-time-machine/Makefile +++ b/devel/py-time-machine/Makefile @@ -1,27 +1,36 @@ PORTNAME= time-machine -DISTVERSION= 2.13.0 +# See XXX below +DISTVERSION= 3.4.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 diff --git a/devel/py-time-machine/distinfo b/devel/py-time-machine/distinfo index c7c4d72509fc..3594f52701cd 100644 --- a/devel/py-time-machine/distinfo +++ b/devel/py-time-machine/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1741812443 -SHA256 (time_machine-2.13.0.tar.gz) = c23b2408e3adcedec84ea1131e238f0124a5bc0e491f60d1137ad7239b37c01a -SIZE (time_machine-2.13.0.tar.gz) = 24606 +TIMESTAMP = 1787517880 +SHA256 (time_machine-3.4.0.tar.gz) = f1c2d8c581f4be50e2f4ff3afd753f8157d52816560de284db716c2b6e9949a8 +SIZE (time_machine-3.4.0.tar.gz) = 21106