python3Packages.mkdocs-jupyter: init at 0.22.0

This commit is contained in:
Sebastien Iooss 2022-10-03 09:55:36 +02:00 committed by Frederik Rietdijk
parent 4e224a9a64
commit 22080b7dc0
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ buildPythonPackage
, fetchPypi
, ipykernel
, jupytext
, lib
, mkdocs
, mkdocs-material
, nbconvert
, pygments
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "mkdocs-jupyter";
version = "0.22.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-WFzGm+pMufr2iYExl43JqbIlCR7UtghPWrZWUqXhIYU=";
};
postPatch = ''
substituteInPlace mkdocs_jupyter/tests/test_base_usage.py \
--replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\","
'';
propagatedBuildInputs = [
nbconvert
jupytext
mkdocs
mkdocs-material
pygments
ipykernel
];
pythonImportsCheck = [ "mkdocs_jupyter" ];
checkInputs = [
pytest-cov
pytestCheckHook
];
meta = with lib; {
description = "Use Jupyter Notebook in mkdocs";
homepage = "https://github.com/danielfrg/mkdocs-jupyter";
license = licenses.asl20;
maintainers = with maintainers; [ net-mist ];
};
}

View file

@ -5760,6 +5760,7 @@ in {
mkdocs-autorefs = callPackage ../development/python-modules/mkdocs-autorefs { };
mkdocs-drawio-exporter = callPackage ../development/python-modules/mkdocs-drawio-exporter { };
mkdocs-exclude = callPackage ../development/python-modules/mkdocs-exclude { };
mkdocs-jupyter = callPackage ../development/python-modules/mkdocs-jupyter { };
mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };
mkdocs-macros = callPackage ../development/python-modules/mkdocs-macros { };
mkdocs-material = callPackage ../development/python-modules/mkdocs-material { };