Skip to content

Commit

Permalink
python312Packages.mdformat-wikilink: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKang committed Oct 31, 2024
1 parent 800538a commit 62a60ff
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/mdformat-wikilink/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
markdown-it-py,
mdformat,
poetry-core,
pytestCheckHook,
pythonOlder,
}:

buildPythonPackage rec {
pname = "mdformat-wikilink";
version = "0.2.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "tmr232";
repo = "mdformat-wikilink";
rev = "v${version}";
hash = "sha256-KOPh9iZfb3GCvslQeYBgqNaOyqtWi2llkaiWE7nmcJo=";
};

build-system = [ poetry-core ];

dependencies = [
markdown-it-py
mdformat
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "mdformat_wikilink" ];

meta = with lib; {
description = "Mdformat plugin for ensuring that wiki-style links are preserved during formatting";
homepage = "https://github.com/tmr232/mdformat-wikilink";
license = licenses.mit;
maintainers = with maintainers; [ MattKang ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7814,6 +7814,7 @@ self: super: with self; {
mdformat-simple-breaks = callPackage ../development/python-modules/mdformat-simple-breaks { };
mdformat-tables = callPackage ../development/python-modules/mdformat-tables { };
mdformat-toc = callPackage ../development/python-modules/mdformat-toc { };
mdformat-wikilink = callPackage ../development/python-modules/mdformat-wikilink { };

mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };

Expand Down

0 comments on commit 62a60ff

Please sign in to comment.