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