diff options
author | wiz <wiz@pkgsrc.org> | 2022-05-12 08:05:28 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2022-05-12 08:05:28 +0000 |
commit | 1b4bcf959b93ef96ddf088528e4224dddacc9969 (patch) | |
tree | 5450b53e8bf69dc7ce12b253ae8637ac5a926f12 /time/py-dateutil/Makefile | |
parent | 223048df81ae5ccfb509e4d70b5033acb51d863f (diff) | |
download | pkgsrc-1b4bcf959b93ef96ddf088528e4224dddacc9969.tar.gz |
*: do not use py-freezegun with python 2.7
Diffstat (limited to 'time/py-dateutil/Makefile')
-rw-r--r-- | time/py-dateutil/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/time/py-dateutil/Makefile b/time/py-dateutil/Makefile index 13ec1eded01..1e4cf9f644b 100644 --- a/time/py-dateutil/Makefile +++ b/time/py-dateutil/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2022/01/13 19:31:24 wiz Exp $ +# $NetBSD: Makefile,v 1.33 2022/05/12 08:05:28 wiz Exp $ DISTNAME= python-dateutil-2.8.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//} @@ -12,7 +12,13 @@ COMMENT= Extensions to the standard datetime module LICENSE= modified-bsd DEPENDS+= ${PYPKGPREFIX}-six>=1.5:../../lang/py-six + +.include "../../lang/python/pyversion.mk" + +.if ${_PYTHON_VERSION} == 27 +# freezegun is only available for python 3 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun +.endif PYTHON_VERSIONED_DEPENDENCIES= test:test PYTHON_VERSIONED_DEPENDENCIES+= hypothesis:test |