1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jupyter-packaging,
6 setuptools,
7 jupyter-server,
8 pytest-jupyter,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "jupyter-server-mathjax";
14 version = "0.2.6";
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit version;
19 pname = "jupyter_server_mathjax";
20 hash = "sha256-ux5rbcBobB/jhqIrWIYWPbVIiTqZwoEMNjmenEyiOUM=";
21 };
22
23 nativeBuildInputs = [
24 jupyter-packaging
25 setuptools
26 ];
27
28 propagatedBuildInputs = [ jupyter-server ];
29
30 nativeCheckInputs = [
31 pytest-jupyter
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "jupyter_server_mathjax" ];
36
37 __darwinAllowLocalNetworking = true;
38
39 meta = with lib; {
40 description = "MathJax resources as a Jupyter Server Extension";
41 homepage = "https://github.com/jupyter-server/jupyter_server_mathjax";
42 license = licenses.bsd3;
43 maintainers = [ ];
44 };
45}