2022-07-14 12:49:19 +00:00
|
|
|
{ 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";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.17.0";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-eEYtfUm9GtE2h+ogeF+7EaoACeZeMutYpX3M6+WxYX8=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
|
|
|
ipython
|
|
|
|
jupyter-cache
|
|
|
|
nbclient
|
|
|
|
myst-parser
|
|
|
|
nbformat
|
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
sphinx-togglebutton
|
|
|
|
typing-extensions
|
|
|
|
ipykernel
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "myst_nb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Jupyter Notebook Sphinx reader built on top of the MyST markdown parser";
|
|
|
|
homepage = "https://github.com/executablebooks/myst-nb";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|