1{ buildPythonPackage
2, fetchPypi
3, ipykernel
4, jupytext
5, lib
6, mkdocs
7, mkdocs-material
8, nbconvert
9, pygments
10, pytestCheckHook
11, pytest-cov
12}:
13
14buildPythonPackage rec {
15 pname = "mkdocs-jupyter";
16 version = "0.22.0";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-WFzGm+pMufr2iYExl43JqbIlCR7UtghPWrZWUqXhIYU=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "nbconvert>=6.2.0,<7.0.0" "nbconvert>=6.2.0"
26 substituteInPlace mkdocs_jupyter/tests/test_base_usage.py \
27 --replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\","
28 '';
29
30 propagatedBuildInputs = [
31 nbconvert
32 jupytext
33 mkdocs
34 mkdocs-material
35 pygments
36 ipykernel
37 ];
38
39 pythonImportsCheck = [ "mkdocs_jupyter" ];
40
41 checkInputs = [
42 pytest-cov
43 pytestCheckHook
44 ];
45
46 meta = with lib; {
47 description = "Use Jupyter Notebook in mkdocs";
48 homepage = "https://github.com/danielfrg/mkdocs-jupyter";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ net-mist ];
51 };
52}