pkgsrc/net/py-pypiserver/Makefile
adam 58491c1010 py-pypiserver: added version 1.3.0
pypiserver is a minimal PyPI compatible server for pip or easy_install. It is
based on bottle and serves packages from regular directories. Wheels, bdists,
eggs and accompanying PGP-signatures can be uploaded either with pip,
setuptools, twine, pypi-uploader, or simply copied with scp.
2019-05-29 20:13:09 +00:00

34 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2019/05/29 20:13:09 adam Exp $
DISTNAME= pypiserver-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pypiserver/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pypiserver/pypiserver
COMMENT= Minimal PyPI server for use with pip/easy_install
LICENSE= modified-bsd
BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.25.0:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-passlib>=1.6:../../security/py-passlib
DEPENDS+= ${PYPKGPREFIX}-watchdog-[0-9]*:../../sysutils/py-watchdog
TEST_DEPENDS+= ${PYPKGPREFIX}-WebTest-[0-9]*:../../www/py-WebTest
TEST_DEPENDS+= ${PYPKGPREFIX}-pip>=7:../../devel/py-pip
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.3:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
TEST_DEPENDS+= ${PYPKGPREFIX}-twine-[0-9]*:../../net/py-twine
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
.endif
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pypi-server pypi-server-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"