nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flit-core,
6 importlib-metadata,
7 ipython,
8 jupyter-cache,
9 nbclient,
10 myst-parser,
11 nbformat,
12 pyyaml,
13 sphinx,
14 sphinx-togglebutton,
15 typing-extensions,
16 ipykernel,
17}:
18
19buildPythonPackage rec {
20 pname = "myst-nb";
21 version = "1.3.0";
22 pyproject = true;
23
24 src = fetchPypi {
25 inherit version;
26 pname = "myst_nb";
27 hash = "sha256-3zzUaA9Rpa9nP9RrOLVivjVZrvFHXpBu0PLmbkWHzks=";
28 };
29
30 nativeBuildInputs = [ flit-core ];
31
32 propagatedBuildInputs = [
33 importlib-metadata
34 ipython
35 jupyter-cache
36 nbclient
37 myst-parser
38 nbformat
39 pyyaml
40 sphinx
41 sphinx-togglebutton
42 typing-extensions
43 ipykernel
44 ];
45
46 pythonImportsCheck = [
47 "myst_nb"
48 "myst_nb.sphinx_ext"
49 ];
50
51 meta = {
52 description = "Jupyter Notebook Sphinx reader built on top of the MyST markdown parser";
53 homepage = "https://github.com/executablebooks/MyST-NB";
54 changelog = "https://github.com/executablebooks/MyST-NB/raw/v${version}/CHANGELOG.md";
55 license = lib.licenses.mit;
56 maintainers = [ ];
57 };
58}