Skip to content

Commit

Permalink
py-notebook_shim: added version 0.2.3
Browse files Browse the repository at this point in the history
This project provides a way for JupyterLab and other frontends to switch to
Jupyter Server for their Python Web application backend.
  • Loading branch information
adam committed May 5, 2023
1 parent 677ed6e commit fc127df
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1708 2023/05/05 10:39:44 adam Exp $
# $NetBSD: Makefile,v 1.1709 2023/05/05 11:01:09 adam Exp $
#

COMMENT= Packages related to the World Wide Web
Expand Down Expand Up @@ -821,10 +821,12 @@ SUBDIR+= py-mod_wsgi
SUBDIR+= py-model_mommy
SUBDIR+= py-moin
SUBDIR+= py-multipart
SUBDIR+= py-nbclassic
SUBDIR+= py-nbclient
SUBDIR+= py-nbconvert
SUBDIR+= py-nbformat
SUBDIR+= py-notebook
SUBDIR+= py-notebook_shim
SUBDIR+= py-parsel
SUBDIR+= py-paste
SUBDIR+= py-pelican
Expand Down
2 changes: 2 additions & 0 deletions www/py-notebook_shim/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This project provides a way for JupyterLab and other frontends to switch to
Jupyter Server for their Python Web application backend.
30 changes: 30 additions & 0 deletions www/py-notebook_shim/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.1 2023/05/05 11:01:09 adam Exp $

DISTNAME= notebook_shim-0.2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=n/notebook-shim/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.org/project/notebook_shim/
COMMENT= For switching to Jupyter Server
LICENSE= modified-bsd

TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.0:../../devel/py-hatchling
DEPENDS+= ${PYPKGPREFIX}-jupyter_server>=1.8:../../www/py-jupyter_server
# TODO: import py-test_jupyter, py-test-tornasync
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-console-scripts-[0-9]*:../../devel/py-test-console-scripts
TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout

USE_LANGUAGES= # none

PYTHON_SELF_CONFLICT= yes

PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38

do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
31 changes: 31 additions & 0 deletions www/py-notebook_shim/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@comment $NetBSD: PLIST,v 1.1 2023/05/05 11:01:09 adam Exp $
etc/jupyter/jupyter_server_config.d/notebook_shim.json
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
${PYSITELIB}/notebook_shim/__init__.py
${PYSITELIB}/notebook_shim/__init__.pyc
${PYSITELIB}/notebook_shim/_version.py
${PYSITELIB}/notebook_shim/_version.pyc
${PYSITELIB}/notebook_shim/nbserver.py
${PYSITELIB}/notebook_shim/nbserver.pyc
${PYSITELIB}/notebook_shim/shim.py
${PYSITELIB}/notebook_shim/shim.pyc
${PYSITELIB}/notebook_shim/tests/__init__.py
${PYSITELIB}/notebook_shim/tests/__init__.pyc
${PYSITELIB}/notebook_shim/tests/confs/jupyter_my_ext_config.py
${PYSITELIB}/notebook_shim/tests/confs/jupyter_my_ext_config.pyc
${PYSITELIB}/notebook_shim/tests/confs/jupyter_notebook_config.py
${PYSITELIB}/notebook_shim/tests/confs/jupyter_notebook_config.pyc
${PYSITELIB}/notebook_shim/tests/confs/jupyter_server_config.py
${PYSITELIB}/notebook_shim/tests/confs/jupyter_server_config.pyc
${PYSITELIB}/notebook_shim/tests/mockextension.py
${PYSITELIB}/notebook_shim/tests/mockextension.pyc
${PYSITELIB}/notebook_shim/tests/test_extension.py
${PYSITELIB}/notebook_shim/tests/test_extension.pyc
${PYSITELIB}/notebook_shim/traits.py
${PYSITELIB}/notebook_shim/traits.pyc
5 changes: 5 additions & 0 deletions www/py-notebook_shim/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2023/05/05 11:01:09 adam Exp $

BLAKE2s (notebook_shim-0.2.3.tar.gz) = 132cefc3cac5cade1c3b883e6bf123890a077becf2b66894d47aa5226389089d
SHA512 (notebook_shim-0.2.3.tar.gz) = 87114ea915ab5160b11023dddcc622aafba315fe07de21cedbed1e374ec2406eba378575e903377dbb9cc69e7449eb184cb0420513b7dc05078af0e91bc5f884
Size (notebook_shim-0.2.3.tar.gz) = 13082 bytes

0 comments on commit fc127df

Please sign in to comment.