pkgsrc/security/py-keyring/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

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2022/01/05 15:41:20 wiz Exp $
DISTNAME= keyring-21.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=k/keyring/}
MAINTAINER= pkgsrc.gnome@gmail.com
HOMEPAGE= https://github.com/jaraco/keyring
COMMENT= Store and access your passwords safely
LICENSE= python-software-foundation
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm
#TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.7.4:../../devel/py-test
#TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} < 38
DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
.endif
USE_LANGUAGES= # none
REPLACE_PYTHON+= keyring/cli.py
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} keyring keyring-${PYVERSSUFFIX} || ${TRUE}
# requires: pytest-black
#do-test:
# cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"