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

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
beautifulsoup4,
jsbeautifier,
mkdocs,
mkdocs-material,
pymdown-extensions,
pyyaml,
requests,
pythonOlder,
}:
buildPythonPackage rec {
pname = "mkdocs-mermaid2-plugin";
version = "1.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fralau";
repo = "mkdocs-mermaid2-plugin";
tag = "v${version}";
hash = "sha256-EsfcOnfjZpAndYccN8WTpfLoUAlc5JQkgoy1ro1hMRo=";
};
propagatedBuildInputs = [
beautifulsoup4
jsbeautifier
mkdocs
mkdocs-material
pymdown-extensions
pyyaml
requests
];
# non-traditional python tests (e.g. nodejs based tests)
doCheck = false;
pythonImportsCheck = [ "mermaid2" ];
meta = {
description = "MkDocs plugin for including mermaid graphs in markdown sources";
homepage = "https://github.com/fralau/mkdocs-mermaid2-plugin";
changelog = "https://github.com/fralau/mkdocs-mermaid2-plugin/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}