diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2021-04-18 10:14:39 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-05-19 20:41:58 +0200 |
commit | 7fc5a36f834073654825415bd46c0779501ef8eb (patch) | |
tree | ba451d94fb3073ba3f9e6a0a892f1f520136bf1b /dev-python/python-lsp-jsonrpc | |
parent | dev-python/mkautodoc: add py3.9 (diff) | |
download | gentoo-7fc5a36f834073654825415bd46c0779501ef8eb.tar.gz gentoo-7fc5a36f834073654825415bd46c0779501ef8eb.tar.bz2 gentoo-7fc5a36f834073654825415bd46c0779501ef8eb.zip |
dev-python/python-lsp-jsonrpc: add spyder fork of python-jsonrpc-server
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/python-lsp-jsonrpc')
4 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/python-lsp-jsonrpc/Manifest b/dev-python/python-lsp-jsonrpc/Manifest new file mode 100644 index 000000000000..38ee18a08713 --- /dev/null +++ b/dev-python/python-lsp-jsonrpc/Manifest @@ -0,0 +1 @@ +DIST python-lsp-jsonrpc-1.0.0.tar.gz 10011 BLAKE2B 671490d439f10eebf2d05f221adad25be6f881f4a0f4fa975d4574937a951d4d0bc51264a9ec67d3ef5d112b6e025b551685d3e3c2b959c4a6bcef92d46c5ff3 SHA512 447835fc6c3810f486d80f85295089c021b792843bdf88d461c021b8b04407d8f7e6a99c07351a23658a5dff46eb475bc64e51bdec029787cd33330b54d4dfec diff --git a/dev-python/python-lsp-jsonrpc/files/python-lsp-jsonrpc-1.0.0-fix-test-with-ujson-3-and-up.patch b/dev-python/python-lsp-jsonrpc/files/python-lsp-jsonrpc-1.0.0-fix-test-with-ujson-3-and-up.patch new file mode 100644 index 000000000000..c7b01903761b --- /dev/null +++ b/dev-python/python-lsp-jsonrpc/files/python-lsp-jsonrpc-1.0.0-fix-test-with-ujson-3-and-up.patch @@ -0,0 +1,12 @@ +diff --git a/test/test_streams.py b/test/test_streams.py +index bce3ffa..f93cb8d 100644 +--- a/test/test_streams.py ++++ b/test/test_streams.py +@@ -113,6 +113,7 @@ def test_writer_bad_message(wfile, writer): + hour=1, + minute=1, + second=1, ++ tzinfo=datetime.timezone.utc + )) + + assert wfile.getvalue() in [ diff --git a/dev-python/python-lsp-jsonrpc/metadata.xml b/dev-python/python-lsp-jsonrpc/metadata.xml new file mode 100644 index 000000000000..8de0ea867323 --- /dev/null +++ b/dev-python/python-lsp-jsonrpc/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>andrewammerlaan@riseup.net</email> + <name>Andrew Ammerlaan</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">python-lsp-jsonrpc</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-lsp-jsonrpc/python-lsp-jsonrpc-1.0.0.ebuild b/dev-python/python-lsp-jsonrpc/python-lsp-jsonrpc-1.0.0.ebuild new file mode 100644 index 000000000000..3e5baaabbc49 --- /dev/null +++ b/dev-python/python-lsp-jsonrpc/python-lsp-jsonrpc-1.0.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="JSON RPC 2.0 server library" +HOMEPAGE="https://github.com/python-lsp/python-lsp-jsonrpc" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +BDEPEND=" + test? ( + dev-python/pycodestyle[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] + )" + +RDEPEND=">=dev-python/ujson-3[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +PATCHES=( "${FILESDIR}/${P}-fix-test-with-ujson-3-and-up.patch" ) + +python_prepare_all() { + # Remove pytest-cov dep + sed -i -e '0,/addopts/I!d' setup.cfg || die + + distutils-r1_python_prepare_all +} |