diff options
Diffstat (limited to 'pkgs/development/python-modules/pymdown-extensions/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pymdown-extensions/default.nix | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/pymdown-extensions/default.nix b/pkgs/development/python-modules/pymdown-extensions/default.nix index d760b9cd0dd47..472a9c334c3a6 100644 --- a/pkgs/development/python-modules/pymdown-extensions/default.nix +++ b/pkgs/development/python-modules/pymdown-extensions/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytestCheckHook -, markdown -, pyyaml -, pygments +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytestCheckHook, + markdown, + pyyaml, + pygments, -# for passthru.tests -, mkdocstrings -, mkdocs-material -, mkdocs-mermaid2-plugin -, hydrus + # for passthru.tests + mkdocstrings, + mkdocs-material, + mkdocs-mermaid2-plugin, + hydrus, }: let @@ -56,23 +57,39 @@ buildPythonPackage rec { nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ markdown pygments ]; + propagatedBuildInputs = [ + markdown + pygments + ]; nativeCheckInputs = [ pytestCheckHook pyyaml ]; + disabledTests = [ + # test artifact mismatch + "test_toc_tokens" + ]; + pythonImportsCheck = map (ext: "pymdownx.${ext}") extensions; passthru.tests = { - inherit mkdocstrings mkdocs-material mkdocs-mermaid2-plugin hydrus; + inherit + mkdocstrings + mkdocs-material + mkdocs-mermaid2-plugin + hydrus + ; }; meta = with lib; { description = "Extensions for Python Markdown"; homepage = "https://facelessuser.github.io/pymdown-extensions/"; - license = with licenses; [ mit bsd2 ]; + license = with licenses; [ + mit + bsd2 + ]; maintainers = with maintainers; [ cpcloud ]; }; } |