diff options
author | wiz <wiz@pkgsrc.org> | 2020-05-18 15:11:01 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-05-18 15:11:01 +0000 |
commit | ddda005d6bcfd72f0dda43253e9cf7a923f2b58b (patch) | |
tree | 70a58a280c2b29c43ebc77bd48a6d106a97cca1c /lang | |
parent | 8311b7acb9bf3296784759c39999ac4cae19b6e5 (diff) | |
download | pkgsrc-ddda005d6bcfd72f0dda43253e9cf7a923f2b58b.tar.gz |
lang/py-pygls: import py-pygls-0.9.0
pygls (pronounced like "pie glass") is a pythonic generic implementation
of the Language Server Protocol for use as a foundation for writing
language servers using Python (e.g. Python, XML, etc.). It allows
you to write your own language server in just a few lines of code.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/py-pygls/DESCR | 4 | ||||
-rw-r--r-- | lang/py-pygls/Makefile | 31 | ||||
-rw-r--r-- | lang/py-pygls/PLIST | 43 | ||||
-rw-r--r-- | lang/py-pygls/distinfo | 7 | ||||
-rw-r--r-- | lang/py-pygls/patches/patch-setup.py | 19 |
5 files changed, 104 insertions, 0 deletions
diff --git a/lang/py-pygls/DESCR b/lang/py-pygls/DESCR new file mode 100644 index 00000000000..5f3a211d201 --- /dev/null +++ b/lang/py-pygls/DESCR @@ -0,0 +1,4 @@ +pygls (pronounced like "pie glass") is a pythonic generic implementation +of the Language Server Protocol for use as a foundation for writing +language servers using Python (e.g. Python, XML, etc.). It allows +you to write your own language server in just a few lines of code. diff --git a/lang/py-pygls/Makefile b/lang/py-pygls/Makefile new file mode 100644 index 00000000000..c98f4d2587d --- /dev/null +++ b/lang/py-pygls/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2020/05/18 15:11:01 wiz Exp $ + +DISTNAME= pygls-0.9.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= lang python +MASTER_SITES= ${MASTER_SITE_PYPI:=p/pygls/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/openlawlibrary/pygls/ +COMMENT= Pythonic generic implementation of the Language Server Protocol +LICENSE= apache-2.0 + +TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock +TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio-[0-9]*:../../devel/py-test-asyncio + +PYTHON_VERSIONED_DEPENDENCIES= test:test + +SUBST_CLASSES+= path +SUBST_SED.path+= -e "s,lib/site-packages/pygls,lib/site-packages/pygls-${PYVERSSUFFIX}," +SUBST_FILES.path+= setup.py +SUBST_STAGE.path= pre-configure +SUBST_MESSAGE.path= Fixing documentation installation path. + +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX} + +.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/py-pygls/PLIST b/lang/py-pygls/PLIST new file mode 100644 index 00000000000..e980b8b8e52 --- /dev/null +++ b/lang/py-pygls/PLIST @@ -0,0 +1,43 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/18 15:11:01 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/not-zip-safe +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pygls/__init__.py +${PYSITELIB}/pygls/__init__.pyo +${PYSITELIB}/pygls/__init__.pyc +${PYSITELIB}/pygls/constants.pyo +${PYSITELIB}/pygls/constants.pyc +${PYSITELIB}/pygls/exceptions.pyo +${PYSITELIB}/pygls/exceptions.pyc +${PYSITELIB}/pygls/feature_manager.pyo +${PYSITELIB}/pygls/feature_manager.pyc +${PYSITELIB}/pygls/features.pyo +${PYSITELIB}/pygls/features.pyc +${PYSITELIB}/pygls/protocol.pyo +${PYSITELIB}/pygls/protocol.pyc +${PYSITELIB}/pygls/server.pyo +${PYSITELIB}/pygls/server.pyc +${PYSITELIB}/pygls/types.pyo +${PYSITELIB}/pygls/types.pyc +${PYSITELIB}/pygls/uris.pyo +${PYSITELIB}/pygls/uris.pyc +${PYSITELIB}/pygls/workspace.pyo +${PYSITELIB}/pygls/workspace.pyc +${PYSITELIB}/pygls/constants.py +${PYSITELIB}/pygls/exceptions.py +${PYSITELIB}/pygls/feature_manager.py +${PYSITELIB}/pygls/features.py +${PYSITELIB}/pygls/protocol.py +${PYSITELIB}/pygls/py.typed +${PYSITELIB}/pygls/server.py +${PYSITELIB}/pygls/types.py +${PYSITELIB}/pygls/uris.py +${PYSITELIB}/pygls/workspace.py +lib/site-packages/pygls-${PYVERSSUFFIX}/CHANGELOG.md +lib/site-packages/pygls-${PYVERSSUFFIX}/LICENSE.txt +lib/site-packages/pygls-${PYVERSSUFFIX}/README.md +lib/site-packages/pygls-${PYVERSSUFFIX}/ThirdPartyNotices.txt +lib/site-packages/pygls-${PYVERSSUFFIX}/py.typed diff --git a/lang/py-pygls/distinfo b/lang/py-pygls/distinfo new file mode 100644 index 00000000000..2514611d3d1 --- /dev/null +++ b/lang/py-pygls/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/05/18 15:11:01 wiz Exp $ + +SHA1 (pygls-0.9.0.tar.gz) = 432df88164feefca975b828dbf8427d2e8cb2e88 +RMD160 (pygls-0.9.0.tar.gz) = cb8dbf0465f8b5ad6e4db5734e00e2b76f4d6045 +SHA512 (pygls-0.9.0.tar.gz) = d1d1db3f98dfc1b292f069e9a06eaad00b34982e191b9a7b5e46814ee825b6f95d5bc02c3a1b2757a19893e644fadaea211ccae075ba560d691a14baee5147e3 +Size (pygls-0.9.0.tar.gz) = 43043 bytes +SHA1 (patch-setup.py) = 395ada7222be7e88d83e647d471b4ece75152993 diff --git a/lang/py-pygls/patches/patch-setup.py b/lang/py-pygls/patches/patch-setup.py new file mode 100644 index 00000000000..7ee36b424df --- /dev/null +++ b/lang/py-pygls/patches/patch-setup.py @@ -0,0 +1,19 @@ +$NetBSD: patch-setup.py,v 1.1 2020/05/18 15:11:01 wiz Exp $ + +Avoid hardcoding particular module versions. + +--- setup.py.orig 2020-04-20 11:29:57.000000000 +0000 ++++ setup.py +@@ -48,9 +48,9 @@ docs_require = [ + ] + + tests_require = [ +- "mock==3.0.5", +- "pytest==4.5.0", +- "pytest-asyncio==0.10.0" ++ "mock", ++ "pytest", ++ "pytest-asyncio", + ] + + # pip install pygls |