python-jupyter_client: drop python 2
This commit is contained in:
parent
5f1c170f05
commit
0d101e3f1c
4 changed files with 42 additions and 43 deletions
|
@ -1,42 +0,0 @@
|
|||
# Template file for 'python-jupyter_client'
|
||||
pkgname=python-jupyter_client
|
||||
version=5.2.4
|
||||
revision=2
|
||||
archs=noarch
|
||||
wrksrc="jupyter_client-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module="jupyter_client"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-setuptools python-traitlets python-jupyter_core
|
||||
python-pyzmq python-dateutil python-tornado python-simplejson"
|
||||
short_desc="Jupyter protocol client APIs (Python2)"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/jupyter/jupyter_client"
|
||||
distfiles="${PYPI_SITE}/j/jupyter_client/jupyter_client-${version}.tar.gz"
|
||||
checksum=b5f9cb06105c1d2d30719db5ffb3ea67da60919fb68deaefa583deccd8813551
|
||||
alternatives="
|
||||
jupyter-client:jupyter-kernel:/usr/bin/jupyter-kernel2
|
||||
jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec2
|
||||
jupyter-client:jupyter-run:/usr/bin/jupyter-run2"
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING.md LICENSE
|
||||
}
|
||||
|
||||
python3-jupyter_client_package() {
|
||||
archs=noarch
|
||||
pycompile_module="jupyter_client"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
depends="python3-setuptools python3-traitlets python3-jupyter_core
|
||||
python3-pyzmq python3-dateutil python3-tornado python3-simplejson"
|
||||
alternatives="
|
||||
jupyter-client:jupyter-kernel:/usr/bin/jupyter-kernel3
|
||||
jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec3
|
||||
jupyter-client:jupyter-run:/usr/bin/jupyter-run3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/*3
|
||||
vmove usr/lib/python3*
|
||||
vlicense COPYING.md LICENSE
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
python-jupyter_client
|
15
srcpkgs/python3-jupyter_client/patches/test_session.patch
Normal file
15
srcpkgs/python3-jupyter_client/patches/test_session.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
encoding option is removed from msgpack.unpackb
|
||||
See: https://pypi.org/project/msgpack/
|
||||
diff --git jupyter_client/tests/test_session.py jupyter_client/tests/test_session.py
|
||||
index 82d63df..d8636ff 100644
|
||||
--- jupyter_client/tests/test_session.py
|
||||
+++ jupyter_client/tests/test_session.py
|
||||
@@ -311,7 +311,7 @@ class TestSession(SessionTestCase):
|
||||
|
||||
session = ss.Session(
|
||||
pack=msgpack.packb,
|
||||
- unpack=lambda buf: msgpack.unpackb(buf, encoding='utf8'),
|
||||
+ unpack=lambda buf: msgpack.unpackb(buf),
|
||||
)
|
||||
self._datetime_test(session)
|
||||
|
27
srcpkgs/python3-jupyter_client/template
Normal file
27
srcpkgs/python3-jupyter_client/template
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Template file for 'python3-jupyter_client'
|
||||
pkgname=python3-jupyter_client
|
||||
version=5.2.4
|
||||
revision=3
|
||||
archs=noarch
|
||||
wrksrc="jupyter_client-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-setuptools python3-traitlets python3-jupyter_core
|
||||
python3-pyzmq python3-dateutil python3-tornado python3-simplejson"
|
||||
checkdepends="$depends python3-pytest python3-ipython_ipykernel
|
||||
python3-msgpack python3-Sphinx"
|
||||
short_desc="Jupyter protocol client APIs"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/jupyter/jupyter_client"
|
||||
distfiles="${PYPI_SITE}/j/jupyter_client/jupyter_client-${version}.tar.gz"
|
||||
checksum=b5f9cb06105c1d2d30719db5ffb3ea67da60919fb68deaefa583deccd8813551
|
||||
conflicts="python-jupyter_client<=5.2.4_2"
|
||||
|
||||
do_check() {
|
||||
pytest -k 'not test_install_kernel_spec_prefix'
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING.md LICENSE
|
||||
}
|
Loading…
Add table
Reference in a new issue