2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
jupyter-packaging,
|
|
|
|
setuptools,
|
|
|
|
jupyter-server,
|
|
|
|
pytest-jupyter,
|
|
|
|
pytestCheckHook,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-server-mathjax";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.2.6";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "pyproject";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "jupyter_server_mathjax";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-ux5rbcBobB/jhqIrWIYWPbVIiTqZwoEMNjmenEyiOUM=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ jupyter-server ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
pytest-jupyter
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jupyter_server_mathjax" ];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "MathJax resources as a Jupyter Server Extension";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/jupyter-server/jupyter_server_mathjax";
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|