diff --git a/pkgs/development/python-modules/jupyter-themes/default.nix b/pkgs/development/python-modules/jupyter-themes/default.nix new file mode 100644 index 000000000000..19c7fcce2d07 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-themes/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lesscpy, + matplotlib, + notebook, + setuptools, +}: + +buildPythonPackage rec { + pname = "jupyter-themes"; + version = "0.20.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "dunovank"; + repo = "jupyter-themes"; + tag = "v${version}"; + hash = "sha256-AWbUXMOA6k2LpZtcJOPxTZb1oL5vLDbBq4aEhXWvy9M="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + lesscpy + matplotlib + notebook + ]; + + pythonImportsCheck = [ "jupyterthemes" ]; + + meta = { + description = "Theme-ify your Jupyter Notebooks!"; + homepage = "https://github.com/dunovank/jupyter-themes"; + changelog = "https://github.com/dunovank/jupyter-themes/blob/v${version}/CHANGES.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jherland ]; + mainProgram = "jupyter-theme"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0ce2835bc24b..e1259a545ce2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7649,6 +7649,8 @@ self: super: with self; { jupyter-telemetry = callPackage ../development/python-modules/jupyter-telemetry { }; + jupyter-themes = callPackage ../development/python-modules/jupyter-themes { }; + jupyter-ui-poll = callPackage ../development/python-modules/jupyter-ui-poll { }; jupyter-ydoc = callPackage ../development/python-modules/jupyter-ydoc { };