2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
flit-core,
|
|
|
|
importlib-metadata,
|
|
|
|
ipython,
|
|
|
|
jupyter-cache,
|
|
|
|
nbclient,
|
|
|
|
myst-parser,
|
|
|
|
nbformat,
|
|
|
|
pyyaml,
|
|
|
|
sphinx,
|
|
|
|
sphinx-togglebutton,
|
|
|
|
typing-extensions,
|
|
|
|
ipykernel,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "myst-nb";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "myst_nb";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-kniEDoRPXXgLWsxUAMv2PZfKrM+OtEKlXr2aA+JSLV4=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
|
|
|
ipython
|
|
|
|
jupyter-cache
|
|
|
|
nbclient
|
|
|
|
myst-parser
|
|
|
|
nbformat
|
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
sphinx-togglebutton
|
|
|
|
typing-extensions
|
|
|
|
ipykernel
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"myst_nb"
|
|
|
|
"myst_nb.sphinx_ext"
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Jupyter Notebook Sphinx reader built on top of the MyST markdown parser";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/executablebooks/MyST-NB";
|
2022-10-06 18:32:54 +00:00
|
|
|
changelog = "https://github.com/executablebooks/MyST-NB/raw/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|