diff --git a/pkgs/development/python-modules/jupyter-contrib-core/default.nix b/pkgs/development/python-modules/jupyter-contrib-core/default.nix new file mode 100644 index 000000000000..0f9c573e3007 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-contrib-core/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, jupyter-core +, notebook +}: + +buildPythonPackage rec { + pname = "jupyter-contrib-core"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "jupyter-contrib"; + repo = "jupyter_contrib_core"; + rev = "refs/tags/${version}"; + hash = "sha256-UTtK+aKxBFkqKuHrt1ox8vdHyFz/9HiKFl7U4UQcG88="; + }; + + propagatedBuildInputs = [ + jupyter-core + notebook + ]; + + pythonImportsCheck = [ "jupyter_contrib_core" ]; + + meta = with lib; { + description = "Common utilities for jupyter-contrib projects"; + homepage = "https://github.com/jupyter-contrib/jupyter_contrib_core"; + license = licenses.bsd3; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix b/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix new file mode 100644 index 000000000000..f95493513e67 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, jupyter-contrib-core +, jupyter-highlight-selected-word +, jupyter-nbextensions-configurator +, lxml +}: + +buildPythonPackage rec { + pname = "jupyter-contrib-nbextensions"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "ipython-contrib"; + repo = "jupyter_contrib_nbextensions"; + rev = "refs/tags/${version}"; + hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q="; + }; + + propagatedBuildInputs = [ + jupyter-contrib-core + jupyter-highlight-selected-word + jupyter-nbextensions-configurator + lxml + ]; + + pythonImportsCheck = [ "jupyter_contrib_nbextensions" ]; + + meta = with lib; { + description = "A collection of various notebook extensions for Jupyter"; + homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions"; + license = licenses.bsd3; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix b/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix new file mode 100644 index 000000000000..a069ecf948f5 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "jupyter-highlight-selected-word"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "jcb91"; + repo = "jupyter_highlight_selected_word"; + rev = "refs/tags/${version}"; + hash = "sha256-KgM//SIfES46uZySwNR4ZOcolnJORltvThsmEvxXoIs="; + }; + + pythonImportsCheck = [ "jupyter_highlight_selected_word" ]; + + meta = with lib; { + description = "Jupyter notebook extension that enables highlighting every instance of the current word in the notebook"; + homepage = "https://github.com/jcb91/jupyter_highlight_selected_word"; + license = licenses.bsd3; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix new file mode 100644 index 000000000000..ef0ff175268f --- /dev/null +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, jupyter-contrib-core +}: + +buildPythonPackage rec { + pname = "jupyter-nbextensions-configurator"; + version = "0.6.3"; + + src = fetchFromGitHub { + owner = "jupyter-contrib"; + repo = "jupyter_nbextensions_configurator"; + rev = "refs/tags/${version}"; + hash = "sha256-ovKYHATRAC5a5qTMv32ohU2gJd15/fRKXa5HI0zGp/0="; + }; + + propagatedBuildInputs = [ jupyter-contrib-core ]; + + pythonImportsCheck = [ "jupyter_nbextensions_configurator" ]; + + meta = with lib; { + description = "A jupyter notebook serverextension providing config interfaces for nbextensions"; + homepage = "https://github.com/jupyter-contrib/jupyter_nbextensions_configurator"; + license = licenses.bsd3; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 581be328051b..e12b14ef588d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5429,14 +5429,22 @@ self: super: with self; { jupyter-client = callPackage ../development/python-modules/jupyter-client { }; + jupyter-contrib-core = callPackage ../development/python-modules/jupyter-contrib-core { }; + + jupyter-contrib-nbextensions = callPackage ../development/python-modules/jupyter-contrib-nbextensions { }; + jupyter_console = callPackage ../development/python-modules/jupyter_console { }; jupyter-core = callPackage ../development/python-modules/jupyter-core { }; jupyter-events = callPackage ../development/python-modules/jupyter-events { }; + jupyter-highlight-selected-word = callPackage ../development/python-modules/jupyter-highlight-selected-word { }; + jupyter-lsp = callPackage ../development/python-modules/jupyter-lsp { }; + jupyter-nbextensions-configurator = callPackage ../development/python-modules/jupyter-nbextensions-configurator { }; + jupyter-server = callPackage ../development/python-modules/jupyter-server { }; jupyter-server-fileid = callPackage ../development/python-modules/jupyter-server-fileid { };