Files
nixpkgs/pkgs/development/python-modules/mkdocs-jupyter/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

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
ipykernel,
jupytext,
mkdocs,
mkdocs-material,
nbconvert,
pygments,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "mkdocs-jupyter";
version = "0.25.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "mkdocs_jupyter";
inherit version;
hash = "sha256-DpJy/0lH4OxoPJJCOkv7QqJkd8EDqxpquCd+LcyPev4=";
};
pythonRelaxDeps = [ "nbconvert" ];
build-system = [ hatchling ];
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 ];
};
}