diff options
author | Frido Friedemann <friede.mann@posteo.de> | 2022-08-14 22:04:28 +0200 |
---|---|---|
committer | Frido Friedemann <friede.mann@posteo.de> | 2022-08-17 19:06:20 +0200 |
commit | 7557be5546c8934575e2d423fdaf53d248d49c8d (patch) | |
tree | 4bb9adbfdba102546f740e1eaf962168ec49b849 /pkgs/development/python-modules/notebook-shim | |
parent | d61d4e71ba9a8f56e9f2092b7cfa9cffa4253971 (diff) |
pythonPackages.notebook-shim: init at 0.1.0
Diffstat (limited to 'pkgs/development/python-modules/notebook-shim')
-rw-r--r-- | pkgs/development/python-modules/notebook-shim/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/notebook-shim/default.nix b/pkgs/development/python-modules/notebook-shim/default.nix new file mode 100644 index 0000000000000..a37e0cb3c6799 --- /dev/null +++ b/pkgs/development/python-modules/notebook-shim/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, jupyter_server +, pytestCheckHook +, pytest-tornasync +}: + +buildPythonPackage rec { + pname = "notebook-shim"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "jupyter"; + repo = "notebook_shim"; + rev = "v${version}"; + sha256 = "sha256-5oIYj8SdC4E0N/yFxsmD2p4VkStHvqrVqAwb/htyPm4="; + }; + + propagatedBuildInputs = [ jupyter_server ]; + + preCheck = '' + mv notebook_shim/conftest.py notebook_shim/tests + cd notebook_shim/tests + ''; + + # TODO: understand & possibly fix why tests fail. On github most testfiles + # have been comitted with msgs "wip" though. + doCheck = false; + + checkInputs = [ + pytestCheckHook + pytest-tornasync + ]; + + pythonImportsCheck = [ "notebook_shim" ]; + + meta = with lib; { + description = "Switch frontends to Jupyter Server"; + longDescription = '' + This project provides a way for JupyterLab and other frontends to switch + to Jupyter Server for their Python Web application backend. + ''; + homepage = "https://github.com/jupyter/notebook_shim"; + license = licenses.bsd3; + maintainers = with maintainers; [ friedelino ]; + }; +} |