65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
ipykernel,
|
|
jupytext,
|
|
mkdocs,
|
|
mkdocs-material,
|
|
nbconvert,
|
|
pygments,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-jupyter";
|
|
version = "0.25.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mkdocs_jupyter";
|
|
inherit version;
|
|
hash = "sha256-DpJy/0lH4OxoPJJCOkv7QqJkd8EDqxpquCd+LcyPev4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"ipykernel"
|
|
"nbconvert"
|
|
];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeBuildInputs = [
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
dependencies = [
|
|
ipykernel
|
|
jupytext
|
|
mkdocs
|
|
mkdocs-material
|
|
nbconvert
|
|
pygments
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
pythonImportsCheck = [ "mkdocs_jupyter" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Use Jupyter Notebook in mkdocs";
|
|
homepage = "https://github.com/danielfrg/mkdocs-jupyter";
|
|
changelog = "https://github.com/danielfrg/mkdocs-jupyter/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ net-mist ];
|
|
};
|
|
}
|