pkgsrc/devel/py-dotenv/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

31 lines
910 B
Makefile

# $NetBSD: Makefile,v 1.8 2022/01/05 15:41:03 wiz Exp $
DISTNAME= python-dotenv-0.19.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-dotenv/}
MAINTAINER= wen@NetBSD.org
HOMEPAGE= https://github.com/theskumar/python-dotenv
COMMENT= Add .env support to your django/flask apps
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-click>=5.0:../../devel/py-click
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-sh-[0-9]*:../../sysutils/py-sh
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} dotenv dotenv-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"