pkgsrc/devel/py-backports.functools_lru_cache/Makefile
2020-05-16 08:54:03 +00:00

28 lines
966 B
Makefile

# $NetBSD: Makefile,v 1.8 2020/05/16 08:54:03 adam Exp $
DISTNAME= backports.functools_lru_cache-1.6.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/backports.functools_lru_cache/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/jaraco/backports.functools_lru_cache/
COMMENT= Backport of functools.lru_cache from Python 3.3
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-backports-[0-9]*:../../devel/py-backports
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
PYTHON_VERSIONS_ACCEPTED= 27
# XXX: also needs py-test-black
do-test:
cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX}
post-install:
${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/__init__.*
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"