diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-09-09 15:18:54 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-09-09 15:39:11 +0200 |
commit | 5af01958e73a7967f1c5fa6f423b9c83d0db2042 (patch) | |
tree | 29da4d6835aec49392da8ae89b0fc0eb1adf1ef8 /dev-python/jupyter-lsp | |
parent | dev-python/jupyterlab: import from ::sci (diff) | |
download | gentoo-5af01958e73a7967f1c5fa6f423b9c83d0db2042.tar.gz gentoo-5af01958e73a7967f1c5fa6f423b9c83d0db2042.tar.bz2 gentoo-5af01958e73a7967f1c5fa6f423b9c83d0db2042.zip |
dev-python/jupyter-lsp: import from ::sci
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/jupyter-lsp')
-rw-r--r-- | dev-python/jupyter-lsp/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jupyter-lsp/jupyter-lsp-1.4.1.ebuild | 46 | ||||
-rw-r--r-- | dev-python/jupyter-lsp/metadata.xml | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/jupyter-lsp/Manifest b/dev-python/jupyter-lsp/Manifest new file mode 100644 index 000000000000..c6dd6f2c8386 --- /dev/null +++ b/dev-python/jupyter-lsp/Manifest @@ -0,0 +1 @@ +DIST jupyter-lsp-1.4.1.tar.gz 35738 BLAKE2B 8eee0567c6700cf3a518e14a0fb01614fd3ff2abd913d33fe765439de391bae0de706d1e6284bb2bc537da7e4380ff812cc341b28e18af0db50473e37b6711c1 SHA512 c23d4343075a3f13ab19147bf1294443a3852fa7b5b9f888c860de9972a1d17b5398b66348c81a6c6a07aa5c3b4615d9edb4f5d53545a926c3f0d1294cf70da7 diff --git a/dev-python/jupyter-lsp/jupyter-lsp-1.4.1.ebuild b/dev-python/jupyter-lsp/jupyter-lsp-1.4.1.ebuild new file mode 100644 index 000000000000..80837081df4c --- /dev/null +++ b/dev-python/jupyter-lsp/jupyter-lsp-1.4.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab" +HOMEPAGE="https://github.com/krassowski/jupyterlab-lsp" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# TODO: Find out what is going on here +# asyncio.exceptions.TimeoutError +RESTRICt="test" + +RDEPEND=" + dev-python/entrypoints[${PYTHON_USEDEP}] + >=dev-python/jupyter_server-1.1.2[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Do not depend on pytest-cov or flake8 + sed -i -e '/--cov/d' -e '/--flake8/d' setup.cfg || die + # R lsp server not packaged + sed -i -e 's:test_r_package_detection:_&:' \ + jupyter_lsp/tests/test_detect.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + mv "${ED}/usr/etc" "${ED}/etc" || die +} + +pkg_postinst() { + optfeature "Language server for Python" dev-python/python-lsp-server +} diff --git a/dev-python/jupyter-lsp/metadata.xml b/dev-python/jupyter-lsp/metadata.xml new file mode 100644 index 000000000000..f8fb29a25925 --- /dev/null +++ b/dev-python/jupyter-lsp/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">jupyter-lsp</remote-id> + <remote-id type="github">krassowski/jupyterlab-lsp</remote-id> + </upstream> +</pkgmetadata> |