67e1f1a6bf
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.
54 lines
2.2 KiB
Makefile
54 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2022/01/05 15:41:12 wiz Exp $
|
|
|
|
DISTNAME= python-lsp-server-1.2.4
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//}
|
|
PKGREVISION= 2
|
|
CATEGORIES= lang python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-lsp-server/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/python-lsp/python-lsp-server
|
|
COMMENT= Implementation of the Language Server Protocol for Python (python-language-server fork)
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-jedi>=0.17.2:../../editors/py-jedi
|
|
DEPENDS+= ${PYPKGPREFIX}-lsp-jsonrpc>=1.0.0:../../textproc/py-lsp-jsonrpc
|
|
DEPENDS+= ${PYPKGPREFIX}-pluggy-[0-9]*:../../devel/py-pluggy
|
|
DEPENDS+= ${PYPKGPREFIX}-ujson>=3.0.0:../../textproc/py-ujson
|
|
DEPENDS+= ${PYPKGPREFIX}-autopep8-[0-9]*:../../devel/py-autopep8
|
|
DEPENDS+= ${PYPKGPREFIX}-flake8>=3.8.0:../../devel/py-flake8
|
|
DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
|
|
DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.7.0:../../devel/py-codestyle
|
|
DEPENDS+= ${PYPKGPREFIX}-docstyle>=2.0.0:../../devel/py-docstyle
|
|
DEPENDS+= ${PYPKGPREFIX}-flakes>=2.3.0:../../devel/py-flakes
|
|
DEPENDS+= ${PYPKGPREFIX}-pylint>=2.5.0:../../devel/py-pylint
|
|
DEPENDS+= ${PYPKGPREFIX}-rope>=0.10.5:../../devel/py-rope
|
|
DEPENDS+= ${PYPKGPREFIX}-yapf-[0-9]*:../../devel/py-yapf
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-pandas-[0-9]*:../../math/py-pandas
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-qt5-[0-9]*:../../x11/py-qt5
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-flaky-[0-9]*:../../devel/py-flaky
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-pylint, py-parso via py-jedi
|
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
SUBST_CLASSES+= pylint
|
|
SUBST_FILES.pylint+= test/plugins/test_pylint_lint.py
|
|
SUBST_STAGE.pylint= pre-build
|
|
SUBST_MESSAGE.pylint= Fix pylint executable name.
|
|
SUBST_SED.pylint= -e "s/'pylint'$$/'pylint-${PYVERSSUFFIX}'/"
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} pylsp pylsp-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|