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 00000000000..f95493513e6 --- /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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1e2b05d616..e12b14ef588 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5431,6 +5431,8 @@ self: super: with self; { 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 { };