Files
nixpkgs/pkgs/development/python-modules/myst-nb/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 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.3.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit version;
pname = "myst_nb";
hash = "sha256-3zzUaA9Rpa9nP9RrOLVivjVZrvFHXpBu0PLmbkWHzks=";
};
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 = {
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 = lib.licenses.mit;
maintainers = [ ];
};
}