bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
flit-core,
|
|
importlib-metadata,
|
|
ipython,
|
|
jupyter-cache,
|
|
nbclient,
|
|
myst-parser,
|
|
nbformat,
|
|
pyyaml,
|
|
sphinx,
|
|
sphinx-togglebutton,
|
|
typing-extensions,
|
|
ipykernel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "myst-nb";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "myst_nb";
|
|
hash = "sha256-kniEDoRPXXgLWsxUAMv2PZfKrM+OtEKlXr2aA+JSLV4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
ipython
|
|
jupyter-cache
|
|
nbclient
|
|
myst-parser
|
|
nbformat
|
|
pyyaml
|
|
sphinx
|
|
sphinx-togglebutton
|
|
typing-extensions
|
|
ipykernel
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"myst_nb"
|
|
"myst_nb.sphinx_ext"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Jupyter Notebook Sphinx reader built on top of the MyST markdown parser";
|
|
homepage = "https://github.com/executablebooks/MyST-NB";
|
|
changelog = "https://github.com/executablebooks/MyST-NB/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|