diff options
author | wiz <wiz@pkgsrc.org> | 2020-05-18 13:34:30 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-05-18 13:34:30 +0000 |
commit | ad90d77c80bf6845e8c7db11389222e5562e3e16 (patch) | |
tree | bb8aabc00871dde1740e0fcb306441a7d459128f /textproc | |
parent | a8bfee5ef90b5cb2f131abd9d620765b580c6196 (diff) | |
download | pkgsrc-ad90d77c80bf6845e8c7db11389222e5562e3e16.tar.gz |
textproc/py-jsonrpc-server: import py-jsonrpc-server-0.3.4
A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0
protocol. This library has been pulled out of the Python Language
Server project.
Asynchronous request handling is supported using Python 3's
concurrent.futures module and the Python 2 concurrent.futures
backport.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-jsonrpc-server/DESCR | 7 | ||||
-rw-r--r-- | textproc/py-jsonrpc-server/Makefile | 33 | ||||
-rw-r--r-- | textproc/py-jsonrpc-server/PLIST | 24 | ||||
-rw-r--r-- | textproc/py-jsonrpc-server/distinfo | 7 | ||||
-rw-r--r-- | textproc/py-jsonrpc-server/patches/patch-setup.py | 16 |
5 files changed, 87 insertions, 0 deletions
diff --git a/textproc/py-jsonrpc-server/DESCR b/textproc/py-jsonrpc-server/DESCR new file mode 100644 index 00000000000..bc9153c5a34 --- /dev/null +++ b/textproc/py-jsonrpc-server/DESCR @@ -0,0 +1,7 @@ +A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0 +protocol. This library has been pulled out of the Python Language +Server project. + +Asynchronous request handling is supported using Python 3's +concurrent.futures module and the Python 2 concurrent.futures +backport. diff --git a/textproc/py-jsonrpc-server/Makefile b/textproc/py-jsonrpc-server/Makefile new file mode 100644 index 00000000000..9be1f0a097f --- /dev/null +++ b/textproc/py-jsonrpc-server/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 2020/05/18 13:34:30 wiz Exp $ + +DISTNAME= python-jsonrpc-server-0.3.4 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//} +CATEGORIES= textproc net devel +MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-jsonrpc-server/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/palantir/python-jsonrpc-server +COMMENT= Asynchronous JSON RPC server for Python +LICENSE= mit + +USE_LANGUAGES= # none + +.include "../../lang/python/pyversion.mk" + +.if ${_PYTHON_VERSION} == 27 +DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future +DEPENDS+= ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures +.endif +DEPENDS+= ${PYPKGPREFIX}-ujson-[0-9]*:../../textproc/py-ujson + +TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock + +PYTHON_VERSIONED_DEPENDENCIES= test:test + +# does not work either +#do-test: +# cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} py.test-${PYVERSSUFFIX} + +.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-jsonrpc-server/PLIST b/textproc/py-jsonrpc-server/PLIST new file mode 100644 index 00000000000..52b4cc0eb30 --- /dev/null +++ b/textproc/py-jsonrpc-server/PLIST @@ -0,0 +1,24 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/18 13:34:30 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pyls_jsonrpc/__init__.py +${PYSITELIB}/pyls_jsonrpc/__init__.pyc +${PYSITELIB}/pyls_jsonrpc/__init__.pyo +${PYSITELIB}/pyls_jsonrpc/_version.py +${PYSITELIB}/pyls_jsonrpc/_version.pyc +${PYSITELIB}/pyls_jsonrpc/_version.pyo +${PYSITELIB}/pyls_jsonrpc/dispatchers.py +${PYSITELIB}/pyls_jsonrpc/dispatchers.pyc +${PYSITELIB}/pyls_jsonrpc/dispatchers.pyo +${PYSITELIB}/pyls_jsonrpc/endpoint.py +${PYSITELIB}/pyls_jsonrpc/endpoint.pyc +${PYSITELIB}/pyls_jsonrpc/endpoint.pyo +${PYSITELIB}/pyls_jsonrpc/exceptions.py +${PYSITELIB}/pyls_jsonrpc/exceptions.pyc +${PYSITELIB}/pyls_jsonrpc/exceptions.pyo +${PYSITELIB}/pyls_jsonrpc/streams.py +${PYSITELIB}/pyls_jsonrpc/streams.pyc +${PYSITELIB}/pyls_jsonrpc/streams.pyo diff --git a/textproc/py-jsonrpc-server/distinfo b/textproc/py-jsonrpc-server/distinfo new file mode 100644 index 00000000000..6a39522704c --- /dev/null +++ b/textproc/py-jsonrpc-server/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/05/18 13:34:30 wiz Exp $ + +SHA1 (python-jsonrpc-server-0.3.4.tar.gz) = ba831d36b8a7f6c6deb6a6f041121f2c0fd8f1f9 +RMD160 (python-jsonrpc-server-0.3.4.tar.gz) = 900bb755841932f6105be186d652aa82c6a7f54f +SHA512 (python-jsonrpc-server-0.3.4.tar.gz) = a00af318baf89fe38ececc2080d7b3af8c2476280f9eb89670e5b0d3ceac046573be964bc2882c1b1894edc8ab4cb5fd69366980abe17bb1df857181821bcbd0 +Size (python-jsonrpc-server-0.3.4.tar.gz) = 26123 bytes +SHA1 (patch-setup.py) = eb2dd2180683df93a65c3ab874edb9b40d4f7972 diff --git a/textproc/py-jsonrpc-server/patches/patch-setup.py b/textproc/py-jsonrpc-server/patches/patch-setup.py new file mode 100644 index 00000000000..1360c3ef4f5 --- /dev/null +++ b/textproc/py-jsonrpc-server/patches/patch-setup.py @@ -0,0 +1,16 @@ +$NetBSD: patch-setup.py,v 1.1 2020/05/18 13:34:30 wiz Exp $ + +Accept any ujson. +https://github.com/palantir/python-jsonrpc-server/issues/36 + +--- setup.py.orig 2020-01-19 16:34:33.000000000 +0000 ++++ setup.py +@@ -34,7 +34,7 @@ setup( + install_requires=[ + 'future>=0.14.0; python_version<"3"', + 'futures; python_version<"3.2"', +- 'ujson<=1.35; platform_system!="Windows"', ++ 'ujson', + ], + + # List additional groups of dependencies here (e.g. development |