38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2020/05/26 22:27:26 adam Exp $
|
|
|
|
DISTNAME= keyring-21.2.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
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
|
|
|
|
.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"
|