mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
0215034f25
when they already rely on SRI hashes.
44 lines
939 B
Nix
44 lines
939 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub
|
|
, beautifulsoup4
|
|
, jsbeautifier
|
|
, mkdocs
|
|
, mkdocs-material
|
|
, pymdown-extensions
|
|
, pyyaml
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-mermaid2-plugin";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fralau";
|
|
repo = "mkdocs-mermaid2-plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-Oe6wkVrsB0NWF+HHeifrEogjxdGPINRDJGkh9p+GoHs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
jsbeautifier
|
|
mkdocs
|
|
mkdocs-material
|
|
pymdown-extensions
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
# non-traditional python tests (e.g. nodejs based tests)
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "mermaid2" ];
|
|
|
|
meta = with lib; {
|
|
description = "A MkDocs plugin for including mermaid graphs in markdown sources";
|
|
homepage = "https://github.com/fralau/mkdocs-mermaid2-plugin";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|