pkgsrc/time/py-tempora/Makefile
adam bbb7b47689 1.9
Added support for months, years to ``parse_timedelta``.
2017-08-22 08:08:25 +00:00

27 lines
869 B
Makefile

# $NetBSD: Makefile,v 1.5 2017/08/22 08:08:25 adam Exp $
DISTNAME= tempora-1.9
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tempora/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/jaraco/tempora
COMMENT= Objects and routines pertaining to date and time
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm
BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=2.8:../../devel/py-test
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} calc-prorate calc-prorate${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"