Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@
githubId = 2071575;
name = "Adam C. Stephens";
};
adamecooper = {
github = "adamecooper";
githubId = 155130052;
name = "Adam Cooper";
};
adamjhf = {
github = "adamjhf";
githubId = 50264672;
Expand Down
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/sphinxcontrib-mermaid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyyaml,
sphinx,
setuptools,
defusedxml,
myst-parser,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "sphinxcontrib-mermaid";
version = "1.0.0";
pyproject = true;

src = fetchFromGitHub {
owner = "mgaitan";
repo = "sphinxcontrib-mermaid";
rev = version;
hash = "sha256-OO2fbtB2qLjsIGjRJrBDDRn8dT9qowfU6i8qRBbDRTM=";
};

build-system = [ setuptools ];

dependencies = [
pyyaml
sphinx
];

optional-dependencies = {
test = [
defusedxml
myst-parser
sphinx
];
};

nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.test;

pythonImportsCheck = [ "sphinxcontrib.mermaid" ];

meta = {
description = "Mermaid diagrams in yours sphinx powered docs";
homepage = "https://github.com/mgaitan/sphinxcontrib-mermaid";
changelog = "https://github.com/mgaitan/sphinxcontrib-mermaid/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ adamecooper ];
mainProgram = "sphinxcontrib-mermaid";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17491,6 +17491,8 @@ self: super: with self; {

sphinxcontrib-log-cabinet = callPackage ../development/python-modules/sphinxcontrib-log-cabinet { };

sphinxcontrib-mermaid = callPackage ../development/python-modules/sphinxcontrib-mermaid { };

sphinxcontrib-moderncmakedomain =
callPackage ../development/python-modules/sphinxcontrib-moderncmakedomain
{ };
Expand Down
Loading