1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 jupyter-server, 7 pytestCheckHook, 8 pytest-tornasync, 9}: 10 11buildPythonPackage rec { 12 pname = "notebook-shim"; 13 version = "0.2.4"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "jupyter"; 18 repo = "notebook_shim"; 19 tag = "v${version}"; 20 hash = "sha256-CWnXOKE1xvr+a/qWNY6XCTB5+G/fg2O/glgeLzYD+Zc="; 21 }; 22 23 nativeBuildInputs = [ hatchling ]; 24 propagatedBuildInputs = [ jupyter-server ]; 25 26 preCheck = '' 27 mv notebook_shim/conftest.py notebook_shim/tests 28 cd notebook_shim/tests 29 ''; 30 31 # TODO: understand & possibly fix why tests fail. On github most testfiles 32 # have been committed with msgs "wip" though. 33 doCheck = false; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-tornasync 38 ]; 39 40 pythonImportsCheck = [ "notebook_shim" ]; 41 42 meta = with lib; { 43 description = "Switch frontends to Jupyter Server"; 44 longDescription = '' 45 This project provides a way for JupyterLab and other frontends to switch 46 to Jupyter Server for their Python Web application backend. 47 ''; 48 homepage = "https://github.com/jupyter/notebook_shim"; 49 license = licenses.bsd3; 50 maintainers = [ ]; 51 }; 52}