From de0f40c837232761068bba96adf0da20abe13f3d Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 20 Oct 2021 16:33:20 -0700 Subject: [PATCH] python3Packages.jupyter-server-mathjax: init at 0.2.3 --- .../jupyter-server-mathjax/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-server-mathjax/default.nix diff --git a/pkgs/development/python-modules/jupyter-server-mathjax/default.nix b/pkgs/development/python-modules/jupyter-server-mathjax/default.nix new file mode 100644 index 00000000000..9aff01cd9d3 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-server-mathjax/default.nix @@ -0,0 +1,39 @@ +{ lib, buildPythonPackage, fetchPypi +, jupyter-packaging +, jupyter_server +, pytest-tornasync +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "jupyter-server-mathjax"; + version = "0.2.3"; + + src = fetchPypi { + inherit version; + pname = "jupyter_server_mathjax"; + sha256 = "564e8d1272019c6771208f577b5f9f2b3afb02b9e2bff3b34c042cef8ed84451"; + }; + + nativeBuildInputs = [ + jupyter-packaging + ]; + + propagatedBuildInputs = [ + jupyter_server + ]; + + checkInputs = [ + pytest-tornasync + pytestCheckHook + ]; + + pythonImportsCheck = [ "jupyter_server_mathjax" ]; + + meta = with lib; { + description = "MathJax resources as a Jupyter Server Extension"; + homepage = "http://jupyter.org"; + license = licenses.bsd3; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bd2c7aa58be..fafa812eb6e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4013,6 +4013,8 @@ in { pkgs-docker = pkgs.docker; }; + jupyter-server-mathjax = callPackage ../development/python-modules/jupyter-server-mathjax { }; + jupyter-sphinx = callPackage ../development/python-modules/jupyter-sphinx { }; jupyter-telemetry = callPackage ../development/python-modules/jupyter-telemetry { };