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-10-06 18:32:54 +00:00
|
|
|
version = "0.17.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-FN9yXz4Ay17+9PhjvwwnNJDIxmLf7jntins3S/JWGTM=";
|
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";
|
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;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|