From e4263f5e9ad6c1e6507c88d02fc588b43c035247 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 13 Jul 2023 09:45:42 +0200 Subject: [PATCH 1/4] python310Packages.jupyter-contrib-core: init at 0.4.2 --- .../jupyter-contrib-core/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-contrib-core/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 581be328051b..d0d1f13d1188 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5429,6 +5429,8 @@ self: super: with self; { jupyter-client = callPackage ../development/python-modules/jupyter-client { }; + jupyter-contrib-core = callPackage ../development/python-modules/jupyter-contrib-core { }; + jupyter_console = callPackage ../development/python-modules/jupyter_console { }; jupyter-core = callPackage ../development/python-modules/jupyter-core { }; From 6eb2c2fddb0c359e250dbcec72b203f32609c038 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 13 Jul 2023 09:46:17 +0200 Subject: [PATCH 2/4] python310Packages.jupyter-nbextensions-configurator: init at 0.6.3 --- .../default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix 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 d0d1f13d1188..231f8ec299dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5439,6 +5439,8 @@ self: super: with self; { 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 { }; From 0a473faa8d5c61789c3b6b0040be077b5ae55f0a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 13 Jul 2023 09:51:37 +0200 Subject: [PATCH 3/4] python310Packages.jupyter-highlight-selected-word: init at 0.2.0 --- .../default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 231f8ec299dc..d1e2b05d616a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5437,6 +5437,8 @@ self: super: with self; { 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 { }; From 5f35b11a0d87b597e418b363c8a4ca086a01e3ed Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 13 Jul 2023 09:52:31 +0200 Subject: [PATCH 4/4] python310Packages.jupyter-contrib-nbextensions: init at 0.7.0 --- .../jupyter-contrib-nbextensions/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1e2b05d616a..e12b14ef588d 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 { };